Skip to content

Commit c1a8f81

Browse files
committed
Add onShowQrCode handler to Donations stories and update mock files with status in StageFilesModal story
1 parent 69f2c2a commit c1a8f81

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

‎packages/ui/src/components/editor/panel/Donations/Donations.stories.tsx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export const Default = () => {
2525
<Donations
2626
donations={sample_donations}
2727
is_fetching={false}
28+
on_show_qr_code={(wallet) => console.log('Show QR code', wallet)}
2829
is_revalidating={false}
2930
on_fetch_next_page={() => console.log('Fetching next page…')}
3031
has_more={false}
@@ -36,6 +37,7 @@ export const Loading = () => {
3637
return (
3738
<Donations
3839
is_fetching={true}
40+
on_show_qr_code={(wallet) => console.log('Show QR code', wallet)}
3941
is_revalidating={false}
4042
on_fetch_next_page={() => console.log('Fetching next page…')}
4143
has_more={false}
@@ -47,6 +49,7 @@ export const Revalidating = () => {
4749
return (
4850
<Donations
4951
donations={sample_donations}
52+
on_show_qr_code={(wallet) => console.log('Show QR code', wallet)}
5053
is_fetching={false}
5154
is_revalidating={true}
5255
on_fetch_next_page={() => console.log('Fetching next page…')}

‎packages/ui/src/components/editor/panel/modals/StageFilesModal/StageFilesModal.stories.tsx‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ export default {
66
}
77

88
const mock_files = [
9-
'packages/ui/src/components/Button.tsx',
10-
'packages/ui/src/components/Modal.tsx',
11-
'packages/vscode/src/utils/helpers.ts',
12-
'packages/shared/src/index.ts',
13-
'README.md'
9+
{ path: 'packages/ui/src/components/Button.tsx', status: 7 }, // Untracked
10+
{ path: 'packages/ui/src/components/Modal.tsx', status: 5 }, // Modified
11+
{ path: 'packages/vscode/src/utils/helpers.ts', status: 6 }, // Deleted
12+
{ path: 'packages/shared/src/index.ts', status: 5 }, // Modified
13+
{ path: 'README.md', status: 7 } // Untracked
1414
]
1515

1616
export const Default = () => {

0 commit comments

Comments
 (0)