Skip to content
Snippets Groups Projects
Commit 7482ebaf authored by Sina Rohde's avatar Sina Rohde
Browse files

linter fix

parent 2c6d268c
No related branches found
No related tags found
3 merge requests!7Revert "MAINT: Ignore venv and package-lock.json",!4inserted new files for content parts,!3F search bar
Pipeline #54233 passed
......@@ -19,7 +19,6 @@ import Stack from '@mui/material/Stack'
import Link from 'next/link'
import ContentArea from '@components/ContentArea'
const Item = styled(Paper)(({ theme }) => ({
backgroundColor: theme.palette.mode === 'dark' ? '#1A2027' : '#fff',
...theme.typography.body2,
......@@ -36,27 +35,24 @@ export default function Index () {
<Box sx={{ flexGrow: 1 }}>
<AppBar position="static">
<Toolbar>
<Avatar
<Avatar
alt="FDO logo graphic"
src="images/logo-fdo-white.png">
</Avatar>
</Avatar>
<Typography
variant="h6"
noWrap
component="div"
marginLeft={2}
sx={{ flexGrow: 1, display: { xs: 'none', sm: 'block' } }}
>
sx={{ flexGrow: 1, display: { xs: 'none', sm: 'block' } }}>
FDO MANAGER
</Typography>
<Stack
direction="row"
width="80%"
justifyContent="flex-end"
alignItems="center"
gap="14px"
>
gap="14px">
<FormControl sx={{ minWidth: 64 }}>
<Select
disableUnderline
......@@ -65,33 +61,24 @@ export default function Index () {
variant="standard"
sx={{
color: 'inherit',
'& .MuiSvgIcon-root': {
color: 'inherit'
},
'& .MuiStack-root > .MuiTypography-root': {
display: {
xs: 'none',
sm: 'block'
}
}
}}
>
{[...(locales ?? [])].sort().map((lang: string) => (
// @ts-expect-error
<MenuItem
component={Link}
href={{ pathname, query }}
locale={lang}
selected={currentLocale === lang}
key={lang}
defaultValue={lang}
value={lang}
>
<Typography>
{lang === 'en' ? 'English' : 'German'}
</Typography>
</MenuItem>
))}
'& .MuiSvgIcon-root': { color: 'inherit' },
'& .MuiStack-root > .MuiTypography-root': { display: { xs: 'none', sm: 'block' } }
}} >
{[...(locales ?? [])].sort().map((lang: string) => (
// @ts-expect-error
<MenuItem
component={Link}
href={{ pathname, query }}
locale={lang}
selected={currentLocale === lang}
key={lang}
defaultValue={lang}
value={lang} >
<Typography>
{lang === 'en' ? 'English' : 'German'}
</Typography>
</MenuItem>
))}
</Select>
</FormControl>
</Stack>
......@@ -100,8 +87,7 @@ export default function Index () {
color="inherit"
onClick={() => {
setMode()
}}
>
}} >
{mode === 'dark' ? <LightModeOutlined /> : <DarkModeOutlined />}
</IconButton>
</Stack>
......
import * as React from 'react';
import Box from '@mui/material/Box';
import Typography from '@mui/material/Typography';
import * as React from 'react'
import Box from '@mui/material/Box'
import Typography from '@mui/material/Typography'
export default function Types() {
export default function Types () {
return (
<Box sx={{ width: '100%', maxWidth: 500 }}>
<Typography variant="subtitle1" gutterBottom>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quos
blanditiis tenetur
</Typography>
<Typography variant="body1" gutterBottom>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quos
blanditiis tenetur unde suscipit, quam beatae rerum inventore consectetur,
neque doloribus, cupiditate numquam dignissimos laborum fugiat deleniti? Eum
quasi quidem quibusdam.
</Typography>
<Typography variant="button" display="block" gutterBottom>
button text
</Typography>
......@@ -30,5 +28,5 @@ export default function Types() {
overline text
</Typography>
</Box>
);
}
\ No newline at end of file
)
}
import * as React from 'react';
import { styled } from '@mui/material/styles';
import Grid from '@mui/material/Grid';
import Paper from '@mui/material/Paper';
import Box from '@mui/material/Box';
import QueryPanel from './header/QueryPanel';
import Content from 'src/components/Content';
import Typography from '@mui/material/Typography';
import Divider from '@mui/material/Divider';
import * as React from 'react'
import { styled } from '@mui/material/styles'
import Grid from '@mui/material/Grid'
import Paper from '@mui/material/Paper'
import Box from '@mui/material/Box'
import QueryPanel from './header/QueryPanel'
import Content from 'src/components/Content'
import Typography from '@mui/material/Typography'
import Divider from '@mui/material/Divider'
const Item = styled(Paper)(({ theme }) => ({
backgroundColor: theme.palette.mode === 'dark' ? '#1A2027' : '#fff',
...theme.typography.body2,
padding: theme.spacing(2),
textAlign: 'center',
color: theme.palette.text.secondary,
}));
color: theme.palette.text.secondary
}))
export default function RowAndColumnSpacing() {
export default function RowAndColumnSpacing () {
return (
<Box alignItems="center">
<Grid container spacing={2} columns={10} justifyContent="center" alignItems="center" marginTop={2}>
......@@ -38,7 +37,7 @@ export default function RowAndColumnSpacing() {
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quos
blanditiis tenetur unde suscipit.
</Typography><br/>
<Typography variant="button" display="block" gutterBottom fontSize={19}>
<Typography variant="button" display="block" gutterBottom fontSize={19}>
Enter FDO Manager
</Typography>
</Item>
......@@ -54,5 +53,5 @@ export default function RowAndColumnSpacing() {
</Grid>
</Grid>
</Box>
);
}
\ No newline at end of file
)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment