From ee8539a9351374a719c9026f85d85e7b4ea6e8f5 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Sat, 25 Sep 2021 16:11:31 +0200 Subject: chore: move tweaks to separate subfolder --- components/SliderWithInfo.tsx | 48 ------------------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 components/SliderWithInfo.tsx (limited to 'components/SliderWithInfo.tsx') diff --git a/components/SliderWithInfo.tsx b/components/SliderWithInfo.tsx deleted file mode 100644 index d4f0372..0000000 --- a/components/SliderWithInfo.tsx +++ /dev/null @@ -1,48 +0,0 @@ -import { - Text, - Box, - Slider, - SliderFilledTrack, - SliderThumb, - SliderTrack, - Tooltip, -} from '@chakra-ui/react' -import React, { useContext } from 'react' -import { ThemeContext } from '../util/themecontext' -import { InfoTooltip } from './InfoTooltip' - -export interface SliderWithInfoProps { - min?: number - max?: number - step?: number - value: number - onChange: (arg0: number) => void - label: string - infoText?: string -} -export const SliderWithInfo = ({ - min = 0, - max = 10, - step = 0.1, - value = 1, - ...rest -}: SliderWithInfoProps) => { - const { onChange, label, infoText } = rest - const { highlightColor } = useContext(ThemeContext) - return ( - - - {label} - {infoText && } - - - - - - - - - - - ) -} -- cgit v1.2.3