File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
packages/components/src/components/NFTGallery Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -5,17 +5,13 @@ import { NFTGallery } from '.';
5
5
export default {
6
6
title : 'Components/NFTGallery' ,
7
7
component : NFTGallery ,
8
- parameters : {
9
- // TODO: Fix window.ethereum is undefined breaking chromatic
10
- chromatic : { disableSnapshot : true } ,
11
- } ,
12
8
} ;
13
9
14
10
export const nftsOwnedByAnAccount = ( ) => (
15
11
< NFTGallery address = '0x1A16c87927570239FECD343ad2654fD81682725e' />
16
12
) ;
17
13
18
- export const nftsOwnedByAnENS = ( ) => {
14
+ const nftsOwnedByAnENSStory = ( ) => {
19
15
const [ provider , setProvider ] = useState < ethers . providers . Web3Provider > ( ) ;
20
16
21
17
useEffect ( ( ) => {
@@ -30,4 +26,11 @@ export const nftsOwnedByAnENS = () => {
30
26
return < NFTGallery address = 'dhaiwat.eth' web3Provider = { provider } /> ;
31
27
} ;
32
28
29
+ export const nftsOwnedByAnENS = nftsOwnedByAnENSStory . bind ( { } ) ;
30
+ // @ts -expect-error
31
+ nftsOwnedByAnENS . parameters = {
32
+ // disables Chromatic's snapshotting on a story level
33
+ chromatic : { disableSnapshot : true } ,
34
+ } ;
35
+
33
36
export const WithAnError = ( ) => < NFTGallery address = 'bad_address' /> ;
You can’t perform that action at this time.
0 commit comments