File tree Expand file tree Collapse file tree 3 files changed +68
-60
lines changed
infrastructure/eid-wallet/src/lib Expand file tree Collapse file tree 3 files changed +68
-60
lines changed Original file line number Diff line number Diff line change 1- import Header from " ./Header.svelte" ;
1+ import Header from ' ./Header.svelte'
22
33export default {
4- title : "Fragments/Header" ,
5- component : Header ,
6- tags : [ "autodocs" ] ,
7- render : ( args : any ) => ( {
8- Component : Header ,
9- props : args ,
10- } ) ,
11- } ;
4+ title : 'Fragments/Header' ,
5+ component : Header ,
6+ tags : [ 'autodocs' ] ,
7+ render : ( args : {
8+ title : string
9+ isBackRequired : boolean
10+ isUserLoggedIn : boolean
11+ } ) => ( {
12+ Component : Header ,
13+ props : args ,
14+ } ) ,
15+ }
1216
1317export const Primary = {
14- args : {
15- title : " Create PIN" ,
16- isBackRequired : false ,
17- isUserLoggedIn : false ,
18- } ,
19- } ;
18+ args : {
19+ title : ' Create PIN' ,
20+ isBackRequired : false ,
21+ isUserLoggedIn : false ,
22+ } ,
23+ }
2024
2125export const Secondary = {
22- args : {
23- title : " Create PIN" ,
24- isBackRequired : true ,
25- isUserLoggedIn : false ,
26- } ,
27- } ;
26+ args : {
27+ title : ' Create PIN' ,
28+ isBackRequired : true ,
29+ isUserLoggedIn : false ,
30+ } ,
31+ }
2832
2933export const Tertiary = {
30- args : {
31- title : " Create PIN" ,
32- isBackRequired : true ,
33- isUserLoggedIn : true ,
34- } ,
35- } ;
34+ args : {
35+ title : ' Create PIN' ,
36+ isBackRequired : true ,
37+ isUserLoggedIn : true ,
38+ } ,
39+ }
Original file line number Diff line number Diff line change 1- import Connection from " ./Connection.svelte" ;
1+ import Connection from ' ./Connection.svelte'
22
33export default {
4- title : "UI/Connection" ,
5- component : Connection ,
6- tags : [ "autodocs" ] ,
7- render : ( args : any ) => ( {
8- Component : Connection ,
9- props : args ,
10- } ) ,
11- } ;
4+ title : 'UI/Connection' ,
5+ component : Connection ,
6+ tags : [ 'autodocs' ] ,
7+ render : ( args : {
8+ imgSrc : string
9+ connectionName : string
10+ lastConnected : string
11+ onClick : ( ) => void
12+ } ) => ( {
13+ Component : Connection ,
14+ props : args ,
15+ } ) ,
16+ }
1217
1318export const Primary = {
14- args : {
15- imgSrc :
16- "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRGPvo_J4nWlDM0kxFW0rsfR5UeOOC6uMvpfQ&s" ,
17- connectionName : "Facebook.com" ,
18- lastConnected :
19- new Date ( ) . toDateString ( ) + ", " + new Date ( ) . toLocaleTimeString ( ) ,
20- onClick : ( ) => alert ( "Disconnected!" ) ,
21- } ,
22- } ;
19+ args : {
20+ imgSrc :
21+ 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRGPvo_J4nWlDM0kxFW0rsfR5UeOOC6uMvpfQ&s' ,
22+ connectionName : 'Facebook.com' ,
23+ lastConnected : `${ new Date ( ) . toDateString ( ) } , ${ new Date ( ) . toLocaleTimeString ( ) } ` ,
24+ onClick : ( ) => alert ( 'Disconnected!' ) ,
25+ } ,
26+ }
Original file line number Diff line number Diff line change 1- import Drawer from " ./Drawer.svelte" ;
2- import { InnerContent } from " ./Drawer.stories.snippet.svelte" ;
1+ import Drawer from ' ./Drawer.svelte'
2+ import { InnerContent } from ' ./Drawer.stories.snippet.svelte'
33
44export default {
5- title : " UI/Drawer" ,
6- component : Drawer ,
7- tags : [ " autodocs" ] ,
8- render : ( args : any ) => ( {
9- Component : Drawer ,
10- props : args ,
11- } ) ,
12- } ;
5+ title : ' UI/Drawer' ,
6+ component : Drawer ,
7+ tags : [ ' autodocs' ] ,
8+ render : ( args : { isPaneOpen : boolean ; children : any } ) => ( {
9+ Component : Drawer ,
10+ props : args ,
11+ } ) ,
12+ }
1313
1414export const Default = {
15- args : {
16- isPaneOpen : true ,
17- children : InnerContent ,
18- } ,
19- } ;
15+ args : {
16+ isPaneOpen : true ,
17+ children : InnerContent ,
18+ } ,
19+ }
You can’t perform that action at this time.
0 commit comments