Fixed last couple of issues from the review

This commit is contained in:
luxumbra
2021-11-19 16:24:53 +00:00
committed by Alec LaLonde
parent c6b4163f23
commit 71267fbdbc
2 changed files with 4 additions and 6 deletions

View File

@@ -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',

View File

@@ -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>