Skip to content

Commit

Permalink
update(app/graph-page): remove cumulative chart
Browse files Browse the repository at this point in the history
  • Loading branch information
KacperKoza343 committed Aug 21, 2024
1 parent 28eaeb9 commit 2c31636
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions packages/apps/dashboard/ui-2024/src/pages/Graph/Graph.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AreaChart, LineChart } from '@components/Charts';
import { AreaChart } from '@components/Charts';
import Tabs from '@mui/material/Tabs';
import TabPanel from '@mui/lab/TabPanel';
import Tab from '@mui/material/Tab';
Expand All @@ -8,7 +8,7 @@ import Typography from '@mui/material/Typography';
import PageWrapper from '@components/PageWrapper';
import Breadcrumbs from '@components/Breadcrumbs';

type graphType = 'bucketed' | 'cumulative';
type graphType = 'bucketed';

const Graph = () => {
const [graphType, setGraphType] = useState<graphType>('bucketed');
Expand All @@ -34,13 +34,6 @@ const Graph = () => {
label={<Typography fontWeight={600}>Bucketed</Typography>}
value="bucketed"
/>
<Tab
sx={{
width: { xs: '50%', sm: 'auto' },
}}
label={<Typography fontWeight={600}>Cumulative</Typography>}
value="cumulative"
/>
</Tabs>
<TabPanel
sx={{
Expand All @@ -50,14 +43,6 @@ const Graph = () => {
>
<AreaChart />
</TabPanel>
<TabPanel
sx={{
p: 0,
}}
value="cumulative"
>
<LineChart />
</TabPanel>
</TabContext>
</PageWrapper>
);
Expand Down

0 comments on commit 2c31636

Please sign in to comment.