Skip to content

Commit

Permalink
chore: purge unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
alecdwm committed Dec 23, 2024
1 parent b73baec commit 3952973
Show file tree
Hide file tree
Showing 97 changed files with 118 additions and 11,521 deletions.
18 changes: 0 additions & 18 deletions apps/portal/codegen.crowdloan.ts

This file was deleted.

18 changes: 0 additions & 18 deletions apps/portal/codegen.history.ts

This file was deleted.

3 changes: 0 additions & 3 deletions apps/portal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
"e2e": "playwright test",
"storybook": "storybook dev -p 6008",
"build-storybook": "storybook build",
"codegen:history": "graphql-codegen --require dotenv/config --config codegen.history.ts",
"codegen:crowdloan": "graphql-codegen --require dotenv/config --config codegen.crowdloan.ts",
"codegen:nova": "graphql-codegen --require dotenv/config --config codegen.nova.ts"
},
"dependencies": {
Expand Down Expand Up @@ -79,7 +77,6 @@
"react-use": "^17.4.0",
"react-winbox": "^1.5.0",
"recoil": "^0.7.7",
"safety-match": "^0.4.4",
"scale-ts": "^1.6.0",
"tailwind-merge": "^2.5.4",
"tailwindcss-animate": "^1.0.7",
Expand Down
42 changes: 25 additions & 17 deletions apps/portal/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import '@polkadot/api-augment/substrate'
import '@talismn/astar-types/augment-api'
import '@talismn/astar-types/types-lookup'

import { BalancesProvider } from '@talismn/balances-react'
import { PolkadotApiProvider } from '@talismn/react-polkadot-api'
import { Toaster } from '@talismn/ui/molecules/Toaster'
import { PostHogProvider } from 'posthog-js/react'
Expand All @@ -21,8 +22,6 @@ import { chainDeriveState, chainQueryMultiState, chainQueryState } from '@/domai
import { ExtensionWatcher } from '@/domains/extension/main'
import { TalismanExtensionSynchronizer } from '@/domains/extension/TalismanExtensionSynchronizer'
import { EvmProvider } from '@/domains/extension/wagmi'
import * as Portfolio from '@/libs/portfolio'
import TalismanProvider from '@/libs/talisman'
import router from '@/routes'

const App = () => (
Expand All @@ -43,21 +42,30 @@ const App = () => (
deriveState={chainDeriveState}
queryMultiState={chainQueryMultiState}
>
<Portfolio.Provider>
<TalismanProvider>
<ExtensionWatcher />
<AccountWatcher />
<SignetWatcher />
<TalismanExtensionSynchronizer />
<BalancesWatcher />
<Suspense fallback={<FullscreenLoader />}>
<RouterProvider router={router} />
<Toaster position="bottom-right" />
</Suspense>
<FairyBreadBanner />
<Development />
</TalismanProvider>
</Portfolio.Provider>
<BalancesProvider
onfinalityApiKey={import.meta.env.VITE_ONFINALITY_API_KEY ?? undefined}
coingeckoApiUrl={import.meta.env.VITE_COIN_GECKO_API}
coingeckoApiKeyValue={import.meta.env.VITE_COIN_GECKO_API_KEY}
coingeckoApiKeyName={
import.meta.env.VITE_COIN_GECKO_API_TIER === 'pro'
? 'x-cg-pro-api-key'
: import.meta.env.VITE_COIN_GECKO_API_TIER === 'demo'
? 'x-cg-demo-api-key'
: undefined
}
>
<ExtensionWatcher />
<AccountWatcher />
<SignetWatcher />
<TalismanExtensionSynchronizer />
<BalancesWatcher />
<Suspense fallback={<FullscreenLoader />}>
<RouterProvider router={router} />
<Toaster position="bottom-right" />
</Suspense>
<FairyBreadBanner />
<Development />
</BalancesProvider>
</PolkadotApiProvider>
</EvmProvider>
</PostHogProvider>
Expand Down
22 changes: 0 additions & 22 deletions apps/portal/src/components/legacy/Await.tsx

This file was deleted.

99 changes: 0 additions & 99 deletions apps/portal/src/components/legacy/Button.tsx

This file was deleted.

70 changes: 0 additions & 70 deletions apps/portal/src/components/legacy/Countdown.tsx

This file was deleted.

53 changes: 0 additions & 53 deletions apps/portal/src/components/legacy/DesktopRequired.tsx

This file was deleted.

Loading

0 comments on commit 3952973

Please sign in to comment.