mirror of
https://github.com/SomboChea/ui
synced 2024-05-18 01:11:36 +07:00
ae73772a37
* refactor: added eslint-plugin-import * refactor: disable some rules for muiComponents * fix: fixed import
29 lines
731 B
TypeScript
29 lines
731 B
TypeScript
import React, { FC, ReactElement } from 'react';
|
|
import Grid from '@material-ui/core/Grid';
|
|
|
|
import DetailContainer from '../../components/DetailContainer';
|
|
import DetailSidebar from '../../components/DetailSidebar';
|
|
|
|
function renderDetail(): ReactElement<HTMLElement> {
|
|
return <DetailContainer />;
|
|
}
|
|
|
|
function renderSidebar(): ReactElement<HTMLElement> {
|
|
return <DetailSidebar />;
|
|
}
|
|
|
|
const Layout: FC<{}> = () => {
|
|
return (
|
|
<Grid className={'container content'} container={true} data-testid="version-layout" spacing={0}>
|
|
<Grid item={true} md={8} xs={12}>
|
|
{renderDetail()}
|
|
</Grid>
|
|
<Grid item={true} md={4} xs={12}>
|
|
{renderSidebar()}
|
|
</Grid>
|
|
</Grid>
|
|
);
|
|
};
|
|
|
|
export { Layout };
|