Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

feat: add deprication notice #170

Merged
merged 1 commit into from
Oct 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions web/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { loadActiveCertificate } from './recoil/api';
import { useWallet } from './hooks/useWallet';
import Loading from './components/Loading';
import { getRpcNode, useRpcNode } from './hooks/useRpcNode';
import { Alert, Button } from '@mui/material';

// Lazy loading all pages in appropriate time
const DeploymentStepper = lazy(() => import('./components/DeploymentStepper'));
Expand All @@ -34,6 +35,28 @@ const Welcome = () => {
return <></>;
};

const DepricationNotice = () => {
const message = 'joined forces, the Overclock core team is pausing active development and bug fixes for Console. Please use Cloudmos Deploy for your Akash Network deployments';
const cloudmosUrl = 'https://deploy.cloudmos.io/';

const handleCtaClick = () => {
window.location.href = cloudmosUrl;
};

return <Alert severity='info'>
<Stack alignItems="center">
<div>
Now that Cloudmos and Overclock labs have&nbsp;
<a target="_blank" href="https://akash.network/blog/overclock-labs-joins-forces-with-cloudmos-to-advance-the-akash-supercloud/" rel="noreferrer">joined forces</a>,
the Overclock core team is pausing active development and bug fixes for Console. Please use&nbsp;
<a href="https://deploy.cloudmos.io/">Cloudmos Deploy</a>
&nbsp;for your Akash Network deployments.
</div>
<div><Button onClick={handleCtaClick}>Go to Cloudmos</Button></div>
</Stack>
</Alert>;
};

const Help = () => {
window.location.href = 'https://docs.akash.network/guides/deploy';

Expand All @@ -44,6 +67,7 @@ const AppRouter = () => {
return (
<Router>
<div className="console-container">
<DepricationNotice />
<SideNav>
<Routes>
<Route path="/landing" element={<Landing />} />
Expand Down