feat: troubleshooting component (#204)

* feat: troubleshooting component and general layout improvements

* style: background color, links and button

* chore: disable ripples and rounded corners on buttons

* fix: spacing on the troubleshooting card
This commit is contained in:
Vojtech Simetka
2021-09-13 12:25:01 +02:00
committed by GitHub
parent cda1d4bbb1
commit c4c1573263
7 changed files with 230 additions and 158 deletions
+16 -17
View File
@@ -12,11 +12,8 @@ import { Context } from '../providers/Bee'
const useStyles = makeStyles((theme: Theme) =>
createStyles({
content: {
marginLeft: 300,
flexGrow: 1,
backgroundColor: theme.palette.background.default,
padding: theme.spacing(3),
paddingBottom: '65px',
minHeight: '100vh',
},
}),
)
@@ -31,20 +28,22 @@ const Dashboard = (props: Props): ReactElement => {
const { isLoading } = useContext(Context)
return (
<div>
<div style={{ display: 'flex' }}>
<SideBar />
<ErrorBoundary>
<main className={classes.content}>
<AlertVersion />
{isLoading ? (
<Container style={{ textAlign: 'center', padding: '50px' }}>
<CircularProgress />
</Container>
) : (
props.children
)}
</main>
</ErrorBoundary>
<Container className={classes.content}>
<ErrorBoundary>
<>
<AlertVersion />
{isLoading ? (
<div style={{ textAlign: 'center', width: '100%' }}>
<CircularProgress />
</div>
) : (
props.children
)}
</>
</ErrorBoundary>
</Container>
</div>
)
}