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/VisualsPanel.tsx | 117 -------------------------------------------- 1 file changed, 117 deletions(-) delete mode 100644 components/VisualsPanel.tsx (limited to 'components/VisualsPanel.tsx') diff --git a/components/VisualsPanel.tsx b/components/VisualsPanel.tsx deleted file mode 100644 index 1b6fceb..0000000 --- a/components/VisualsPanel.tsx +++ /dev/null @@ -1,117 +0,0 @@ -import { ArrowRightIcon, ChevronDownIcon } from '@chakra-ui/icons' -import { - Text, - Accordion, - AccordionButton, - AccordionItem, - Box, - Flex, - IconButton, - Menu, - MenuButton, - MenuItemOption, - MenuList, - MenuOptionGroup, - Portal, - Tooltip, - VStack, - AccordionIcon, - AccordionPanel, - MenuItem, - Collapse, - StackDivider, - Button, -} from '@chakra-ui/react' -import React, { useCallback } from 'react' -import { ColorMenu } from './ColorMenu' -import { EnableSection } from './EnableSection' -import { SliderWithInfo } from './SliderWithInfo' -import { HighlightingPanel } from './HighlightingPanel' -import { ColorsPanel } from './ColorsPanel' -import { colorList, initialVisuals } from './config' -import { NodesNLinksPanel } from './NodesNLinksPanel' -import { LabelsPanel } from './LabelsPanel' -import { CitationsPanel } from './CitationsPanel' - -export interface VisualsPanelProps { - visuals: typeof initialVisuals - setVisuals: any - highlightColor: string - setHighlightColor: any - threeDim: boolean -} - -export const VisualsPanel = (props: VisualsPanelProps) => { - const { visuals, setVisuals, highlightColor, setHighlightColor, threeDim } = props - const setVisualsCallback = useCallback((val) => setVisuals(val), []) - return ( - - - - - - Colors - - - - - - - - - - - Nodes & Links - - - - - - - - - - - Labels - - - - - - - - - - - Highlighting - - - - - - - - - - - Citations - - - - - - - - - - ) -} -- cgit v1.2.3