From 560750b15df070ebb7f37f23879803730750bf13 Mon Sep 17 00:00:00 2001 From: nthouliss Date: Wed, 19 Jul 2023 10:08:55 +1000 Subject: [PATCH] Remove owlbear rodeo 1.0 --- src/App.tsx | 52 +---------------------------------- src/modals/MigrationModal.tsx | 28 +++++++------------ 2 files changed, 11 insertions(+), 69 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 1583124..4374a1c 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,62 +1,12 @@ import { ThemeProvider } from "theme-ui"; -import { BrowserRouter as Router, Switch, Route } from "react-router-dom"; import theme from "./theme"; -import Home from "./routes/Home"; -import Game from "./routes/Game"; -import About from "./routes/About"; -import FAQ from "./routes/FAQ"; -import ReleaseNotes from "./routes/ReleaseNotes"; -import HowTo from "./routes/HowTo"; - -import { AuthProvider } from "./contexts/AuthContext"; -import { SettingsProvider } from "./contexts/SettingsContext"; -import { KeyboardProvider } from "./contexts/KeyboardContext"; -import { DatabaseProvider } from "./contexts/DatabaseContext"; -import { UserIdProvider } from "./contexts/UserIdContext"; - -import { ToastProvider } from "./components/Toast"; import MigrationModal from "./modals/MigrationModal"; function App() { return ( - - - - - - - - {/* Legacy support camel case routes */} - - - - - - - - - - - - - - - - - - - - - - - - - - - - + ); } diff --git a/src/modals/MigrationModal.tsx b/src/modals/MigrationModal.tsx index 3909596..741c5fb 100644 --- a/src/modals/MigrationModal.tsx +++ b/src/modals/MigrationModal.tsx @@ -1,22 +1,11 @@ -import { Box, Button, Text } from "theme-ui"; -import Modal from "../components/Modal"; - -import { useState } from "react"; +import { Box, Button, Container, Text } from "theme-ui"; function MigrationModal() { - const [open, setOpen] = useState(true); - return ( - { - setOpen(false); - }} - style={{ content: { maxWidth: "450px" } }} - > + - -

Migrate Now

+ +

Owlbear Rodeo 2.0 is coming!

- Make sure to migrate your data before July 18th. + Migration is now taking place
-
+ ); }