Implement dark mode

Resolves #206
This commit is contained in:
nimbleghost 2023-06-28 16:45:40 +02:00
parent d40b776205
commit 4f39c7c155
10 changed files with 69 additions and 29 deletions

View file

@ -12,10 +12,10 @@ import {
FormGroup,
useMediaQuery,
Switch,
useTheme,
} from "@mui/material";
import { useTranslation } from "react-i18next";
import { useLiveQuery } from "dexie-react-hooks";
import theme from "./theme";
import api from "../app/Api";
import { randomAlphanumericString, topicUrl, validTopic, validUrl } from "../app/utils";
import userManager from "../app/UserManager";
@ -49,6 +49,7 @@ export const subscribeTopic = async (baseUrl, topic, opts) => {
};
const SubscribeDialog = (props) => {
const theme = useTheme();
const [baseUrl, setBaseUrl] = useState("");
const [topic, setTopic] = useState("");
const [showLoginPage, setShowLoginPage] = useState(false);