Skip to content

Commit

Permalink
Backup UI updates
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed Apr 2, 2024
1 parent 77ff554 commit 634b29d
Showing 1 changed file with 28 additions and 9 deletions.
37 changes: 28 additions & 9 deletions src/renderer/pages/Backup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ import {
Tooltip,
IconButton,
LinearProgress,
CircularProgress
CircularProgress,
Divider,
Avatar
} from "@mui/material";
import { grey } from '@mui/material/colors';
import { useCallback, useContext, useEffect, useState } from "react";
import { AuthContext } from "../components/AuthProvider";
import { useStorage } from "../hooks/useStorage";
Expand Down Expand Up @@ -184,6 +187,15 @@ export default function Backup(): JSX.Element {

return (
<form noValidate autoComplete="on">
<Avatar sx={{ width: 60, height: 60, position: "absolute", left: 130, top: 215, bgcolor: grey[700] }}>
1
</Avatar>
<Avatar sx={{ width: 60, height: 60, position: "absolute", left: 130, top: 437, bgcolor: grey[700] }}>
2
</Avatar>
<Avatar sx={{ width: 60, height: 60, position: "absolute", left: 130, top: 636, bgcolor: grey[700] }}>
3
</Avatar>
<Grid
container
direction={"column"}
Expand All @@ -199,22 +211,23 @@ export default function Backup(): JSX.Element {
justifyContent={"center"}
alignItems={"center"}
>
<Grid item xs={10}>
<Grid item xs={1} textAlign={"center"}>
<IconButton onClick={onSelectDirectory} disabled={running}>
<FolderIcon fontSize="large" />
</IconButton>
</Grid>
<Grid item xs={11}>
<TextField
variant="outlined"
placeholder=""
placeholder="Please select download location"
required={true}
fullWidth
name="directory"
value={directory}
disabled={true}
onClick={onSelectDirectory}
/>
</Grid>
<Grid item xs={2} textAlign={"center"}>
<IconButton onClick={onSelectDirectory} disabled={running}>
<FolderIcon fontSize="large" />
</IconButton>
</Grid>
</Grid>
<Grid item xs={12}>
<Button
Expand All @@ -234,6 +247,9 @@ export default function Backup(): JSX.Element {
justifyContent={"center"}
paddingTop={2}
>
<Grid item xs={12} textAlign={"center"}>
<Divider />
</Grid>
{/* Avatars */}
<Grid
container
Expand Down Expand Up @@ -399,6 +415,9 @@ export default function Backup(): JSX.Element {
)}
</Grid>
</Grid>
<Grid item xs={12} textAlign={"center"} marginTop={1}>
<Divider />
</Grid>
<Grid item xs={12} textAlign={"center"}>
<FormControlLabel
control={<Checkbox size={"small"} />}
Expand All @@ -425,7 +444,7 @@ export default function Backup(): JSX.Element {
alignContent={"center"}
justifyContent={"center"}
alignItems={"center"}
paddingTop={2}
paddingTop={1}
>
<Grid item xs={6}>
<Button
Expand Down

0 comments on commit 634b29d

Please sign in to comment.