@@ -7,6 +7,7 @@ import { ModalModule } from "../";
77import { Component , Input , Inject } from "@angular/core" ;
88import { BrowserAnimationsModule } from "@angular/platform-browser/animations" ;
99import { Modal , ModalService } from "../" ;
10+ import { ModalButton , AlertModalType } from "./alert-modal.interface" ;
1011
1112@Modal ( )
1213@Component ( {
@@ -60,20 +61,20 @@ class ModalStory {
6061 `
6162} )
6263class AlertModalStory {
63- @Input ( ) modalType : string ;
64+ @Input ( ) modalType : AlertModalType ;
6465 @Input ( ) modalLabel : string ;
6566 @Input ( ) modalTitle : string ;
6667 @Input ( ) modalContent : string ;
67- @Input ( ) buttons : any ;
68+ @Input ( ) buttons : Array < ModalButton > ;
6869
6970 constructor ( private modalService : ModalService ) { }
7071
7172 openModal ( ) {
7273 this . modalService . show ( {
7374 modalType : this . modalType ,
74- modalLabel : this . modalLabel ,
75- modalTitle : this . modalTitle ,
76- modalContent : this . modalContent ,
75+ label : this . modalLabel ,
76+ title : this . modalTitle ,
77+ content : this . modalContent ,
7778 buttons : this . buttons
7879 } ) ;
7980 }
0 commit comments