mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-01 13:47:27 +02:00
stub out section element
This commit is contained in:
parent
8e5112d764
commit
d1f117405b
@ -1,4 +1,4 @@
|
|||||||
import type { FC } from 'react';
|
import type { FC, PropsWithChildren } from 'react';
|
||||||
import { Box, Paper, styled } from '@mui/material';
|
import { Box, Paper, styled } from '@mui/material';
|
||||||
import { UserStats } from './componentsStat/UserStats/UserStats.tsx';
|
import { UserStats } from './componentsStat/UserStats/UserStats.tsx';
|
||||||
import { UsersChart } from './componentsChart/UsersChart/UsersChart.tsx';
|
import { UsersChart } from './componentsChart/UsersChart/UsersChart.tsx';
|
||||||
@ -91,6 +91,16 @@ const StyledChartContainer = styled(Box)(({ theme }) => ({
|
|||||||
padding: theme.spacing(3),
|
padding: theme.spacing(3),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
const Section: FC<PropsWithChildren<{ title: string }>> = ({
|
||||||
|
title,
|
||||||
|
children,
|
||||||
|
}) => (
|
||||||
|
<section>
|
||||||
|
<h2>{title}</h2>
|
||||||
|
{children}
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
|
||||||
export const InsightsCharts: FC<IChartsProps> = ({
|
export const InsightsCharts: FC<IChartsProps> = ({
|
||||||
projects,
|
projects,
|
||||||
summary,
|
summary,
|
||||||
|
Loading…
Reference in New Issue
Block a user