mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
Fixed last couple of issues from the review
This commit is contained in:
@@ -210,7 +210,6 @@ export const Chart: FC<ChartType> = ({ data }) => {
|
||||
};
|
||||
|
||||
function makePlots(days: Array<Array<number>>) {
|
||||
// adding this as i couldn't work out how to fix the type error. Could do with a pair session for this stuff.
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const plots: Array<AreaSeriesPoint> = [];
|
||||
|
||||
@@ -240,7 +239,7 @@ export const Chart: FC<ChartType> = ({ data }) => {
|
||||
_hover={{ color: 'white', borderColor: 'white' }}
|
||||
variant="outline"
|
||||
isRound
|
||||
onClick={() => toggleScale()}
|
||||
onClick={toggleScale}
|
||||
sx={{
|
||||
'&:focus, &:hover': {
|
||||
background: 'transparent',
|
||||
|
||||
@@ -73,9 +73,8 @@ export const Grid = (): ReactElement => {
|
||||
|
||||
useEffect(() => {
|
||||
if (getFromLS('layouts') !== undefined) setOwnLayout(true);
|
||||
function handleLayoutChange(layout: Layout[] = [], layouts: Layouts) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(layout);
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
function handleLayoutChange(_layout: Layout[] = [], layouts: Layouts) {
|
||||
saveToLS('layouts', JSON.parse(JSON.stringify(layouts)));
|
||||
setGridLayouts(JSON.parse(JSON.stringify(layouts)));
|
||||
}
|
||||
@@ -141,7 +140,7 @@ export const Grid = (): ReactElement => {
|
||||
transition="color 0.2s ease"
|
||||
onClick={toggleEditLayout}
|
||||
>
|
||||
Edit layout
|
||||
{editable ? 'Save' : 'Edit'} layout
|
||||
</MetaButton>
|
||||
</ButtonGroup>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user