diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-07-29 07:16:59 +0200 |
---|---|---|
committer | Thomas F. K. Jorna <[email protected]> | 2021-07-29 07:16:59 +0200 |
commit | c85b8d482a11e3800ea86e42d41bc99c99738ea1 (patch) | |
tree | b226a721cf974db68b0dd03d66689936f7889f16 /components | |
parent | 52ad98fc3d55f7f4f9a4d1062adbfcf8d1899806 (diff) |
errors be gone!
Diffstat (limited to 'components')
-rw-r--r-- | components/tweaks.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/components/tweaks.tsx b/components/tweaks.tsx index bd607b7..a30ce4c 100644 --- a/components/tweaks.tsx +++ b/components/tweaks.tsx @@ -39,7 +39,7 @@ import { } from '@chakra-ui/react' import React, { useState, useContext } from 'react' import Scrollbars from 'react-custom-scrollbars-2' -import { initialPhysics, initialFilter, initialVisuals, Visuals } from './config' +import { initialPhysics, initialFilter, initialVisuals } from './config' import { ThemeContext } from '../pages/themecontext' @@ -312,6 +312,7 @@ export const Tweaks = (props: TweakProps) => { <Text>Nodes</Text> <Tooltip label="Shuffle node colors"> <IconButton + aria-label="Shuffle node colors" size="sm" icon={<RepeatIcon />} variant="ghost" @@ -322,7 +323,7 @@ export const Tweaks = (props: TweakProps) => { //shuffle that guy //definitely thought of this myself nodeColorScheme: arr - .map((x) => [Math.random(), x]) + .map((x: any) => [Math.random(), x]) .sort(([a], [b]) => a - b) .map(([_, x]) => x), }) @@ -331,6 +332,7 @@ export const Tweaks = (props: TweakProps) => { </Tooltip> <Tooltip label="Cycle node colors"> <IconButton + aria-label="Shift node colors" icon={<ArrowRightIcon />} size="sm" variant="ghost" |