Skip to content

Commit

Permalink
upgrading packages
Browse files Browse the repository at this point in the history
  • Loading branch information
MelissaOlas committed Apr 2, 2024
1 parent d3fdc6e commit c78e5e9
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@
"@lumieducation/h5p-express": "^9.3.2",
"@lumieducation/h5p-react": "^9.3.2",
"@lumieducation/h5p-server": "^9.3.2",
"@mui/icons-material": "^5.8.4",
"@mui/icons-material": "^5.15.14",
"@mui/material": "^5.15.14",
"@mui/system": "^5.8.5",
"@mui/system": "^5.15.14",
"@mui/x-charts": "^7.0.0",
"ajv": "^8.11.2",
"ajv-formats": "^2.1.1",
Expand Down
11 changes: 6 additions & 5 deletions src/components/dashboard-statistics/charts/BarCharts.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import type React from 'react';

import { BarChart } from '@mui/x-charts/BarChart';
// import { BarChart } from '@mui/x-charts/BarChart';

// import styles from '../styles/charts.module.css';

Expand All @@ -18,9 +18,10 @@ interface Props {

const BarCharts: React.FC<Props> = ({ barChartData }) => {
const numericData = barChartData.dt.flatMap((item) => item.data);

Check warning on line 20 in src/components/dashboard-statistics/charts/BarCharts.tsx

View workflow job for this annotation

GitHub Actions / lint

'numericData' is assigned a value but never used
return (
<BarChart xAxis={[{ scaleType: 'band', data: ['group A', 'group B', 'group C'] }]} series={[{ data: numericData }]} width={500} height={300} />
);
return null;
// return (
// <BarChart xAxis={[{ scaleType: 'band', data: ['group A', 'group B', 'group C'] }]} series={[{ data: numericData }]} width={500} height={300} />
// );
};

export default BarCharts;
3 changes: 1 addition & 2 deletions src/components/dashboard-statistics/charts/PieCharts.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';

import { PieChart } from '@mui/x-charts/PieChart';

Check failure on line 1 in src/components/dashboard-statistics/charts/PieCharts.tsx

View workflow job for this annotation

GitHub Actions / lint

There should be at least one empty line between import groups
import React from 'react';

Check failure on line 2 in src/components/dashboard-statistics/charts/PieCharts.tsx

View workflow job for this annotation

GitHub Actions / lint

`react` import should occur before import of `@mui/x-charts/PieChart`

import styles from '../styles/charts.module.css';

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ __metadata:
"@lumieducation/h5p-express": ^9.3.2
"@lumieducation/h5p-react": ^9.3.2
"@lumieducation/h5p-server": ^9.3.2
"@mui/icons-material": ^5.8.4
"@mui/icons-material": ^5.15.14
"@mui/material": ^5.15.14
"@mui/system": ^5.8.5
"@mui/system": ^5.15.14
"@mui/x-charts": ^7.0.0
"@next/eslint-plugin-next": ^12.1.6
"@svgr/webpack": 6.2.1
Expand Down Expand Up @@ -2464,7 +2464,7 @@ __metadata:
languageName: node
linkType: hard

"@mui/icons-material@npm:^5.8.4":
"@mui/icons-material@npm:^5.15.14":
version: 5.15.14
resolution: "@mui/icons-material@npm:5.15.14"
dependencies:
Expand Down Expand Up @@ -2551,7 +2551,7 @@ __metadata:
languageName: node
linkType: hard

"@mui/system@npm:^5.15.14, @mui/system@npm:^5.8.5":
"@mui/system@npm:^5.15.14":
version: 5.15.14
resolution: "@mui/system@npm:5.15.14"
dependencies:
Expand Down

0 comments on commit c78e5e9

Please sign in to comment.