added dark streamline logo, minor styling adjustments
This commit is contained in:
parent
24d27121d1
commit
c9bf0d11ad
3 changed files with 7 additions and 8 deletions
BIN
public/Streamline/stream-logo-dark.png
Normal file
BIN
public/Streamline/stream-logo-dark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 26 KiB |
|
|
@ -50,7 +50,10 @@ export default function SyncDevice(props: Props) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
error("Unable to resync device");
|
error("Unable to resync device");
|
||||||
close();
|
close();
|
||||||
});
|
})
|
||||||
|
.finally(() => {
|
||||||
|
close()
|
||||||
|
})
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { useDeviceAPI, useUserAPI } from "hooks";
|
import { useDeviceAPI, useMobile, useUserAPI } from "hooks";
|
||||||
import PageContainer from "./PageContainer";
|
import PageContainer from "./PageContainer";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { Button, CircularProgress, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Divider } from "@mui/material";
|
import { Button, CircularProgress, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Divider } from "@mui/material";
|
||||||
|
|
@ -15,6 +15,7 @@ export default function SignupCallback (props: Props) {
|
||||||
const teamAPI = useTeamAPI()
|
const teamAPI = useTeamAPI()
|
||||||
const deviceAPI = useDeviceAPI();
|
const deviceAPI = useDeviceAPI();
|
||||||
const binAPI = useBinAPI();
|
const binAPI = useBinAPI();
|
||||||
|
const isMobile = useMobile()
|
||||||
const [loading, setLoading] = useState(false)
|
const [loading, setLoading] = useState(false)
|
||||||
const [signupDialogOpen, setSignupDialogOpen] = useState(true)
|
const [signupDialogOpen, setSignupDialogOpen] = useState(true)
|
||||||
const [hasTeams, setHasTeams] = useState(false)
|
const [hasTeams, setHasTeams] = useState(false)
|
||||||
|
|
@ -25,14 +26,9 @@ export default function SignupCallback (props: Props) {
|
||||||
const [doneTeams, setDoneTeams] = useState(false)
|
const [doneTeams, setDoneTeams] = useState(false)
|
||||||
const [doneDevices, setDoneDevices] = useState(false)
|
const [doneDevices, setDoneDevices] = useState(false)
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
console.log(hasTeams)
|
|
||||||
}, [hasTeams])
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setLoading(true)
|
setLoading(true)
|
||||||
userAPI.completeSignup().then(resp => {
|
userAPI.completeSignup().then(resp => {
|
||||||
console.log(resp)
|
|
||||||
teamAPI.listTeams(1, 0).then(resp => {
|
teamAPI.listTeams(1, 0).then(resp => {
|
||||||
setHasTeams(resp.data.teams.length > 0)
|
setHasTeams(resp.data.teams.length > 0)
|
||||||
}).finally(() => setDoneTeams(true))
|
}).finally(() => setDoneTeams(true))
|
||||||
|
|
@ -68,7 +64,7 @@ export default function SignupCallback (props: Props) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<PageContainer spacing={1}>
|
<PageContainer spacing={1}>
|
||||||
<Dialog open={signupDialogOpen} >
|
<Dialog open={signupDialogOpen} fullScreen={isMobile} >
|
||||||
<DialogTitle>
|
<DialogTitle>
|
||||||
Finishing Signup
|
Finishing Signup
|
||||||
</DialogTitle>
|
</DialogTitle>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue