parent
d40b776205
commit
4f39c7c155
10 changed files with 69 additions and 29 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue