Skip to content

Commit

Permalink
Add migration warning
Browse files Browse the repository at this point in the history
  • Loading branch information
abefernan committed Feb 8, 2024
1 parent cc86a74 commit 5aadc3e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
22 changes: 22 additions & 0 deletions components/MigrationWarning.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";

export default function MigrationWarning() {
return (
<Alert className="mx-auto my-4 max-w-md border-yellow-300 bg-fuchsia-900">
<AlertTitle>Warning!</AlertTitle>
<AlertDescription className="mt-3">
This app will no longer be found at this url from March the 1st.
</AlertDescription>
<AlertDescription className="mt-3">
It will instead be accessible from{" "}
<a href="https://multisig.confio.run" target="_blank" className="text-blue-400">
https://multisig.confio.run
</a>
.
</AlertDescription>
<AlertDescription className="mt-3">
Any pending transactions on this app will be lost when that time arrives.
</AlertDescription>
</Alert>
);
}
2 changes: 2 additions & 0 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Header from "@/components/Header";
import MigrationWarning from "@/components/MigrationWarning";
import { Toaster } from "@/components/ui/toaster";
import { TooltipProvider } from "@/components/ui/tooltip";
import ThemeProvider from "@/context/ThemesContext";
Expand All @@ -12,6 +13,7 @@ export default function MultisigApp({ Component, pageProps }: AppProps) {
<ThemeProvider attribute="class" defaultTheme="dark" enableSystem>
<TooltipProvider>
<Header />
<MigrationWarning />
<Component {...pageProps} />
<Toaster />
</TooltipProvider>
Expand Down

0 comments on commit 5aadc3e

Please sign in to comment.