diff --git a/src/App.tsx b/src/App.tsx index aab03d7..d3a7494 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -16,6 +16,7 @@ import { DatabaseProvider } from "./contexts/DatabaseContext"; import { UserIdProvider } from "./contexts/UserIdContext"; import { ToastProvider } from "./components/Toast"; +import { MigrationNotification } from "./MigrationNotification"; function App() { return ( @@ -24,6 +25,7 @@ function App() { + {/* Legacy support camel case routes */} diff --git a/src/MigrationNotification.tsx b/src/MigrationNotification.tsx new file mode 100644 index 0000000..9516da0 --- /dev/null +++ b/src/MigrationNotification.tsx @@ -0,0 +1,22 @@ +import { useEffect } from "react"; +import { useToasts } from "react-toast-notifications"; +import { Link } from "theme-ui"; + +export function MigrationNotification() { + const { addToast } = useToasts(); + + useEffect(() => { + const message = ( + + The new era of Owlbear Rodeo is coming on July 18th. Make sure to + migrate your data before July 18th. Read more + + ); + addToast(message, { + autoDismiss: false, + appearance: "info", + }); + }, [addToast]); + + return null; +}