Skip to content

Commit

Permalink
fix: typescript errors
Browse files Browse the repository at this point in the history
  • Loading branch information
obasilakis committed Nov 7, 2023
1 parent 47e1e3d commit e443e38
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/masa.stories.tsx
@@ -1,7 +1,7 @@
import buffer from 'buffer';
import * as buffer from 'buffer';
import type { Args, Meta } from '@storybook/react';
import type { Chain } from 'wagmi';
import React, { MouseEventHandler } from 'react';
import { MouseEventHandler } from 'react';
import { Button } from './ui';

import './styles.scss';
Expand Down
14 changes: 4 additions & 10 deletions src/masanew.stories.tsx
@@ -1,8 +1,8 @@
import buffer from 'buffer';
import * as buffer from 'buffer';
import { ReactQueryDevtoolsPanel } from '@tanstack/react-query-devtools'; // eslint-disable-line import/no-extraneous-dependencies
import type { Args, Meta } from '@storybook/react';
import type { Chain } from 'wagmi';
import React, { MouseEventHandler, useCallback, useState } from 'react';
import { MouseEventHandler, useCallback, useState } from 'react';
import { darkStyles, JsonView } from 'react-json-view-lite'; // eslint-disable-line import/no-extraneous-dependencies
import { SoulNameDetails } from '@masa-finance/masa-sdk';
import { useAsync } from 'react-use';
Expand All @@ -23,7 +23,6 @@ import MasaProvider from './masa-provider';
import { useSession } from './masa/use-session';
import { MasaQueryClientContext } from './masa-client/masa-query-client-context';

import { openGalleryModal } from './ui/components/modals';
import { openCreateSoulnameModal } from './ui/components/modals/create-soulname/CreateSoulnameModal';
import { useWalletClient } from './wallet-client/wallet-client-provider';
import { useAuthenticate } from './ui/components/modals/authenticate/use-authenticate';
Expand Down Expand Up @@ -551,11 +550,6 @@ const ModalFlow = () => {
Create Soul Name
</Button>
</li>
<li>
<Button type="button" onClick={openGalleryModal}>
Gallery
</Button>
</li>
</ul>
);
};
Expand Down Expand Up @@ -595,7 +589,7 @@ const Component = (): JSX.Element => {
>
<JsonView
data={config}
shouldInitiallyExpand={(number) => number <= 0 && true}
shouldExpandNode={(number) => number <= 0 && true}
style={{ ...darkStyles }}
/>
</div>
Expand All @@ -610,7 +604,7 @@ const Component = (): JSX.Element => {
>
<JsonView
data={masa ?? {}}
shouldInitiallyExpand={(number) => number <= 0 && true}
shouldExpandNode={(number) => number <= 0 && true}
style={{ ...darkStyles }}
/>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/wallet.stories.tsx
@@ -1,7 +1,7 @@
import buffer from 'buffer';
import * as buffer from 'buffer';
import type { Args, Meta } from '@storybook/react';
import type { Chain } from 'wagmi';
import React, { MouseEventHandler } from 'react';
import { MouseEventHandler } from 'react';
import { Button } from './ui';
import './ui/styles.scss';
import './stories.scss';
Expand Down

0 comments on commit e443e38

Please sign in to comment.