feat: Add dummy pages

This commit is contained in:
Ali BARIN
2021-10-07 01:10:19 +02:00
parent 3aa90bf29f
commit 36ed8d7838
12 changed files with 124 additions and 16 deletions

View File

@@ -1,10 +0,0 @@
import { FormattedMessage } from 'react-intl';
import Layout from 'components/Layout';
export default function App() {
return (
<Layout>
<FormattedMessage id="welcomeText" />
</Layout>
);
}

View File

@@ -0,0 +1,28 @@
import Card from '@mui/material/Card';
import CardActionArea from '@mui/material/CardActionArea';
import CardContent from '@mui/material/CardContent';
import Typography from '@mui/material/Typography';
type AppRowProps = {
icon?: React.ReactNode;
name: string;
connectionNumber?: number;
flowNumber?: number;
}
export default function AppRow(props: AppRowProps) {
const { name } = props;
return (
<Card sx={{ my: 1 }}>
<CardActionArea>
<CardContent>
<Typography gutterBottom variant="h6" component="div">
{name}
</Typography>
</CardContent>
</CardActionArea>
</Card>
);
}

View File

@@ -0,0 +1,11 @@
import MuiContainer, { ContainerProps } from '@mui/material/Container';
export default function Container(props: ContainerProps) {
return (
<MuiContainer {...props} />
);
};
Container.defaultProps = {
maxWidth: 'lg'
};

View File

@@ -19,7 +19,7 @@ export default function Layout({ children }: LayoutProps) {
<Box sx={{ display: 'flex', }}>
<Drawer open={isDrawerOpen} />
<Box sx={{ display: 'flex', flexDirection: 'column' }}>
<Box sx={{ flex: 1 }}>
<Toolbar />
{children}

View File

@@ -0,0 +1,15 @@
import Typography from '@mui/material/Typography';
type PageTitleProps = {
children: React.ReactNode;
};
export default function PageTitle(props: PageTitleProps) {
const { children } = props;
return (
<Typography variant="h4">
{children}
</Typography>
);
}