Skip to content

Commit

Permalink
feat: remove unused modals, update exports
Browse files Browse the repository at this point in the history
  • Loading branch information
simodrws committed Sep 22, 2023
1 parent 9936841 commit eb26671
Show file tree
Hide file tree
Showing 18 changed files with 9 additions and 389 deletions.
8 changes: 0 additions & 8 deletions src/index.tsx
Expand Up @@ -10,11 +10,3 @@ export * from './masa-client';
export * from './masa';
export * from './ui';
export * from './wallet-client';
// export * from "./account"

// export {
// openCreateSoulnameModal,
// openAuthenticateModal,
// MasaProvider as MasaRefactorProvider,
// MasaProvider,
// } from './refactor';
30 changes: 1 addition & 29 deletions src/masanew.stories.tsx
Expand Up @@ -3,7 +3,6 @@ import { ReactQueryDevtoolsPanel } from '@tanstack/react-query-devtools'; // esl
import type { Args, Meta } from '@storybook/react';
import type { Chain } from 'wagmi';
import React, { MouseEventHandler, useCallback, useState } from 'react';
import NiceModal from '@ebay/nice-modal-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 @@ -25,12 +24,7 @@ import MasaProvider from './masa-provider';
import { useSession } from './masa/use-session';
import { MasaQueryClientContext } from './masa-client/masa-query-client-context';

import {
CreateCreditScoreModal,
CreateIdentityModal,
openGalleryModal,
} from './ui/components/modals';
import { useGreenModal } from './ui/components/modals/create-green/use-green-modal';
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 @@ -499,7 +493,6 @@ const GreenInfo = () => {
const ModalFlow = () => {
const { isDisconnected, disconnect } = useWallet();
const { hasSession, logoutSession } = useSession();
const { showChainingModal } = useGreenModal();
const { identity } = useIdentity();
const onLogout = useCallback(() => {
if (hasSession) logoutSession().catch(() => {});
Expand Down Expand Up @@ -548,27 +541,6 @@ const ModalFlow = () => {
Create Soul Name
</Button>
</li>
<li>
<Button
type="button"
onClick={() => NiceModal.show(CreateIdentityModal)}
>
Create Identity
</Button>
</li>
<li>
<Button
type="button"
onClick={() => NiceModal.show(CreateCreditScoreModal)}
>
Create Credit Score
</Button>
</li>
<li>
<Button type="button" onClick={showChainingModal}>
Create Masa Green
</Button>
</li>
<li>
<Button type="button" onClick={openGalleryModal}>
Gallery
Expand Down
5 changes: 5 additions & 0 deletions src/ui/components/index.tsx
@@ -0,0 +1,5 @@
export * from './Button';
export * from './Input';
export * from './Select';
export * from './gallery';
export * from './modals';
1 change: 1 addition & 0 deletions src/ui/components/modals/authenticate/index.tsx
@@ -1,2 +1,3 @@
export { AuthenticateModal, openAuthenticateModal } from './authenticate';
export { useAuthenticate } from './use-authenticate';
export * from './use-authenticate-modal';

This file was deleted.

1 change: 0 additions & 1 deletion src/ui/components/modals/create-credit-score/index.tsx

This file was deleted.

15 changes: 0 additions & 15 deletions src/ui/components/modals/create-green/CreateGreenModal.tsx

This file was deleted.

34 changes: 0 additions & 34 deletions src/ui/components/modals/create-green/air-drop.tsx

This file was deleted.

25 changes: 0 additions & 25 deletions src/ui/components/modals/create-green/create-green.tsx

This file was deleted.

1 change: 0 additions & 1 deletion src/ui/components/modals/create-green/index.tsx

This file was deleted.

29 changes: 0 additions & 29 deletions src/ui/components/modals/create-green/not-a-bot-modal.tsx

This file was deleted.

14 changes: 0 additions & 14 deletions src/ui/components/modals/create-green/use-green-modal.ts

This file was deleted.

124 changes: 0 additions & 124 deletions src/ui/components/modals/create-identity/create-identity.tsx

This file was deleted.

0 comments on commit eb26671

Please sign in to comment.