Remove owlbear rodeo 1.0
This commit is contained in:
parent
af6e4908f4
commit
560750b15d
52
src/App.tsx
52
src/App.tsx
@ -1,62 +1,12 @@
|
|||||||
import { ThemeProvider } from "theme-ui";
|
import { ThemeProvider } from "theme-ui";
|
||||||
import { BrowserRouter as Router, Switch, Route } from "react-router-dom";
|
|
||||||
|
|
||||||
import theme from "./theme";
|
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";
|
import MigrationModal from "./modals/MigrationModal";
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
return (
|
return (
|
||||||
<ThemeProvider theme={theme}>
|
<ThemeProvider theme={theme}>
|
||||||
<SettingsProvider>
|
<MigrationModal />
|
||||||
<AuthProvider>
|
|
||||||
<KeyboardProvider>
|
|
||||||
<ToastProvider>
|
|
||||||
<MigrationModal />
|
|
||||||
<Router>
|
|
||||||
<Switch>
|
|
||||||
{/* Legacy support camel case routes */}
|
|
||||||
<Route path={["/howTo", "/how-to"]}>
|
|
||||||
<HowTo />
|
|
||||||
</Route>
|
|
||||||
<Route path={["/releaseNotes", "/release-notes"]}>
|
|
||||||
<ReleaseNotes />
|
|
||||||
</Route>
|
|
||||||
<Route path="/about">
|
|
||||||
<About />
|
|
||||||
</Route>
|
|
||||||
<Route path="/faq">
|
|
||||||
<FAQ />
|
|
||||||
</Route>
|
|
||||||
<Route path="/game/:id">
|
|
||||||
<DatabaseProvider>
|
|
||||||
<UserIdProvider>
|
|
||||||
<Game />
|
|
||||||
</UserIdProvider>
|
|
||||||
</DatabaseProvider>
|
|
||||||
</Route>
|
|
||||||
<Route path="/">
|
|
||||||
<Home />
|
|
||||||
</Route>
|
|
||||||
</Switch>
|
|
||||||
</Router>
|
|
||||||
</ToastProvider>
|
|
||||||
</KeyboardProvider>
|
|
||||||
</AuthProvider>
|
|
||||||
</SettingsProvider>
|
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -1,22 +1,11 @@
|
|||||||
import { Box, Button, Text } from "theme-ui";
|
import { Box, Button, Container, Text } from "theme-ui";
|
||||||
import Modal from "../components/Modal";
|
|
||||||
|
|
||||||
import { useState } from "react";
|
|
||||||
|
|
||||||
function MigrationModal() {
|
function MigrationModal() {
|
||||||
const [open, setOpen] = useState(true);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Modal
|
<Container>
|
||||||
isOpen={open}
|
|
||||||
onRequestClose={() => {
|
|
||||||
setOpen(false);
|
|
||||||
}}
|
|
||||||
style={{ content: { maxWidth: "450px" } }}
|
|
||||||
>
|
|
||||||
<Box>
|
<Box>
|
||||||
<Text py={2} sx={{ textAlign: "center" }}>
|
<Text py={2} sx={{ textAlign: "center", mc: "auto" }}>
|
||||||
<h1>Migrate Now</h1>
|
<h1>Owlbear Rodeo 2.0 is coming!</h1>
|
||||||
</Text>
|
</Text>
|
||||||
<img
|
<img
|
||||||
src="/nestling.png"
|
src="/nestling.png"
|
||||||
@ -28,7 +17,7 @@ function MigrationModal() {
|
|||||||
variant="body"
|
variant="body"
|
||||||
sx={{ flexGrow: 1, textAlign: "center", mt: 3 }}
|
sx={{ flexGrow: 1, textAlign: "center", mt: 3 }}
|
||||||
>
|
>
|
||||||
Make sure to migrate your data before July 18th.
|
Migration is now taking place
|
||||||
</Text>
|
</Text>
|
||||||
<Button
|
<Button
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
@ -41,14 +30,17 @@ function MigrationModal() {
|
|||||||
backgroundColor: "hsl(260, 100%, 80%)",
|
backgroundColor: "hsl(260, 100%, 80%)",
|
||||||
color: "black",
|
color: "black",
|
||||||
border: "none",
|
border: "none",
|
||||||
width: "100%",
|
alignContent: "center",
|
||||||
|
width: "50%",
|
||||||
|
mx: "auto",
|
||||||
|
display: "block",
|
||||||
mt: 4,
|
mt: 4,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Read more
|
Read more
|
||||||
</Button>
|
</Button>
|
||||||
</Box>
|
</Box>
|
||||||
</Modal>
|
</Container>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user