From 29d72525bd55ad7fe7d041cd9fd96b1be2898b9c Mon Sep 17 00:00:00 2001 From: Luke Berndt Date: Sun, 17 Nov 2024 08:45:22 -0500 Subject: [PATCH] cleanup --- frontend/src/About/AboutComponent.js | 20 ++------------------ frontend/src/Main/Main.js | 8 +++----- 2 files changed, 5 insertions(+), 23 deletions(-) diff --git a/frontend/src/About/AboutComponent.js b/frontend/src/About/AboutComponent.js index b778e45..dc1c0d5 100644 --- a/frontend/src/About/AboutComponent.js +++ b/frontend/src/About/AboutComponent.js @@ -1,25 +1,9 @@ -import React, { useState } from "react"; +import React from "react"; import { Link } from 'react-router-dom' -import { Container, Header, Divider, Icon, Menu, Button, List, ListContent, ListIcon, ListItem, ListDescription, ListHeader, LabelDetail } from "semantic-ui-react"; +import { Container, Header, Divider, Icon, Menu, Button, List, ListContent, ListItem, ListDescription, ListHeader } from "semantic-ui-react"; const AboutComponent = () => { - const [activeIndex, setActiveIndex] = useState(-1); - const handleClick = (e, titleProps) => { - const { index } = titleProps - const newIndex = activeIndex === index ? -1 : index - setActiveIndex(newIndex); - } - - const panels = [ - { - key: 'feeds', - title: { content: (Where do the different feeds come from?) }, - content: [ - 'It is a team effort! There are contributers from around country and even internationally, that are running Trunk Recorder to capture local radio systems and sending the transmissions to OpenMHz.', - ].join(' '), - } - ] return ( diff --git a/frontend/src/Main/Main.js b/frontend/src/Main/Main.js index c9f9089..6f0425a 100644 --- a/frontend/src/Main/Main.js +++ b/frontend/src/Main/Main.js @@ -25,15 +25,14 @@ import { AreaClosed, Line, Bar } from '@visx/shape'; import { curveMonotoneX } from '@visx/curve'; import { GridRows, GridColumns } from '@visx/grid'; import { scaleTime, scaleLinear } from '@visx/scale'; -import { withTooltip, Tooltip, TooltipWithBounds, defaultStyles } from '@visx/tooltip'; +import { Tooltip, TooltipWithBounds, defaultStyles } from '@visx/tooltip'; import { useTooltip, useTooltipInPortal } from '@visx/tooltip'; import { localPoint } from '@visx/event'; import { LinearGradient } from '@visx/gradient'; import { max, extent, bisector } from 'd3-array'; import { timeFormat } from 'd3-time-format'; import { AxisLeft } from '@visx/axis'; -import { useDispatch } from 'react-redux' -import { useGetStatsQuery, useGetSystemsQuery, useGetSiteStatsQuery } from "../features/api/apiSlice"; +import { useGetSystemsQuery, useGetSiteStatsQuery } from "../features/api/apiSlice"; /* Responsive component was removed from Semantic UI. This is discussed here: https://github.com/Semantic-Org/Semantic-UI-React/pull/4008 */ @@ -100,8 +99,7 @@ General flow: const DesktopContainer = (props) => { const [fixed, setFixed] = useState(false); - const hideFixedMenu = () => setFixed(false) - const showFixedMenu = () => setFixed(true) + const { children } = props