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

@@ -15,6 +15,7 @@ import {
MenuItem,
IconButton,
ListItemIcon,
useTheme,
} from "@mui/material";
import { useTranslation } from "react-i18next";
import { useNavigate } from "react-router-dom";
@@ -30,7 +31,6 @@ import {
RemoveCircle,
Send,
} from "@mui/icons-material";
import theme from "./theme";
import subscriptionManager from "../app/SubscriptionManager";
import DialogFooter from "./DialogFooter";
import accountApi, { Role } from "../app/AccountApi";
@@ -281,6 +281,7 @@ export const SubscriptionPopup = (props) => {
};
const DisplayNameDialog = (props) => {
const theme = useTheme();
const { t } = useTranslation();
const { subscription } = props;
const [error, setError] = useState("");