Skip to content

Commit 82d5236

Browse files
committed
feat: close the ui
1 parent e8e0b94 commit 82d5236

File tree

1 file changed

+79
-22
lines changed

1 file changed

+79
-22
lines changed

src/App.tsx

Lines changed: 79 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,24 @@
1-
import { ContextModalProvider } from '@ergolabs/ui-kit';
1+
import { Box, Flex, Typography } from '@ergolabs/ui-kit';
22
import { Suspense, useEffect } from 'react';
33
import * as React from 'react';
4-
import { GoogleReCaptchaProvider } from 'react-google-recaptcha-v3';
54
import { BrowserRouter } from 'react-router-dom';
65
import { BehaviorSubject, first, mapTo, Observable, tap, zip } from 'rxjs';
76

8-
import { applicationConfig } from './applicationConfig';
9-
import { ApplicationRoutes, routesConfig } from './ApplicationRoutes';
7+
import { routesConfig } from './ApplicationRoutes';
108
import { useObservable } from './common/hooks/useObservable';
119
import { analyticsInitializer } from './common/initializers/analyticsInitializer';
1210
import { gaInitializer } from './common/initializers/gaInitializer';
1311
import { networkDomInitializer } from './common/initializers/networkDomInitializer';
1412
import { sentryInitializer } from './common/initializers/sentryInitializer';
15-
import { SelectDefaultNetwork } from './common/services/NetworkDomManager/SelectDefaultNetwork/SelectDefaultNetwork';
1613
import { startAppTicks } from './common/streams/appTick';
1714
import { Glow } from './components/common/Layout/Glow/Glow';
1815
import { ErrorEventProvider } from './components/ErrorBoundary/ErrorEventProvider';
19-
import { AppLoadingProvider, useApplicationSettings } from './context';
16+
import { useApplicationSettings } from './context';
2017
import { useBodyClass } from './hooks/useBodyClass';
2118
import { useMetaThemeColor } from './hooks/useMetaThemeColor';
2219
import { LanguageProvider } from './i18n/i18n';
2320
import { isDarkOsTheme } from './utils/osTheme';
2421

25-
const Application = () => {
26-
return (
27-
<AppLoadingProvider>
28-
<GoogleReCaptchaProvider reCaptchaKey={applicationConfig.reCaptchaKey}>
29-
<ContextModalProvider>
30-
<ApplicationRoutes />
31-
</ContextModalProvider>
32-
</GoogleReCaptchaProvider>
33-
</AppLoadingProvider>
34-
);
35-
};
36-
3722
const initializers: Observable<boolean>[] = [
3823
sentryInitializer(),
3924
analyticsInitializer(),
@@ -54,7 +39,7 @@ const initializeApp = () => {
5439

5540
export const ApplicationInitializer: React.FC = () => {
5641
const [{ theme }] = useApplicationSettings();
57-
const [isAppInitialized] = useObservable(isAppInitialized$, [], false);
42+
const [] = useObservable(isAppInitialized$, [], false);
5843

5944
useBodyClass([theme]);
6045
useMetaThemeColor(
@@ -78,9 +63,81 @@ export const ApplicationInitializer: React.FC = () => {
7863
<BrowserRouter>
7964
<LanguageProvider>
8065
<Glow />
81-
<SelectDefaultNetwork>
82-
{isAppInitialized && <Application />}
83-
</SelectDefaultNetwork>
66+
<Flex align="center" justify="center">
67+
<Box borderRadius="xl" padding={4}>
68+
<Flex style={{ maxWidth: '500px' }} col>
69+
<Typography.Body>Dear Community Member,</Typography.Body>
70+
<br />
71+
<Typography.Body>
72+
We want to inform you of an important update regarding
73+
Spectrum Finance project. After careful consideration, we’ve
74+
decided to discontinue support for the current Spectrum DEX
75+
interface. This change is a significant step in our
76+
evolution, as we shift our focus to new platforms that align
77+
more closely with our future vision.
78+
</Typography.Body>
79+
<br />
80+
<Typography.Body>
81+
Spectrum DEX has been split into two distinct platforms:
82+
ErgoDEX on the Ergo blockchain and Splash on the Cardano
83+
blockchain. This isn’t just a rebranding but a strategic
84+
move to enhance clarity and purpose.
85+
</Typography.Body>
86+
<br />
87+
<Typography.Body>
88+
Our decision stems from a commitment to advancing Spectrum
89+
Network, a groundbreaking cross-chain decentralized
90+
technology.{' '}
91+
<b>
92+
By separating Spectrum Network from the DEXes, we aim to
93+
eliminate any confusion, allowing each platform to grow
94+
independently without overlap.
95+
</b>
96+
</Typography.Body>
97+
<br />
98+
<Typography.Body>
99+
All Cardano liquidity pools have been migrated to Splash
100+
DEX, and all Ergo liquidity pools to ErgoDEX, ensuring a
101+
seamless trading experience on both platforms.
102+
</Typography.Body>
103+
<br />
104+
<Typography.Body>
105+
Moving forward, our development focus will be on Spectrum
106+
Network, representing our vision for a future of cross-chain
107+
interoperability. By concentrating on this technology, we
108+
believe we can drive greater adoption and deliver more value
109+
to our community.
110+
</Typography.Body>
111+
<br />
112+
<Typography.Body>
113+
We understand transitions can be challenging, and we deeply
114+
appreciate your continued support. We’re confident that both
115+
ErgoDEX and Splash will serve you well as they grow.
116+
</Typography.Body>
117+
<br />
118+
<Typography.Body>
119+
Thank you for being part of our community. We’re excited
120+
about the opportunities ahead.
121+
</Typography.Body>
122+
<br />
123+
<Typography.Body>Best regards,</Typography.Body>
124+
<Typography.Body>The Spectrum Finance Team</Typography.Body>
125+
<br />
126+
<Flex row>
127+
<Flex.Item marginRight={4}>
128+
<Typography.Link href="https://ergodex.io">
129+
ErgoDEX (Ergo network)
130+
</Typography.Link>
131+
</Flex.Item>
132+
<Flex.Item>
133+
<Typography.Link href="https://splash.trade">
134+
Splash (Cardano network)
135+
</Typography.Link>
136+
</Flex.Item>
137+
</Flex>
138+
</Flex>
139+
</Box>
140+
</Flex>
84141
</LanguageProvider>
85142
</BrowserRouter>
86143
</ErrorEventProvider>

0 commit comments

Comments
 (0)