Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
robotastic committed Nov 17, 2024
1 parent f5e77da commit 29d7252
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 23 deletions.
20 changes: 2 additions & 18 deletions frontend/src/About/AboutComponent.js
Original file line number Diff line number Diff line change
@@ -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: (<span style={{ fontWeight: "bold" }}>Where do the different feeds come from?</span>) },
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 (
Expand Down
8 changes: 3 additions & 5 deletions frontend/src/Main/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 29d7252

Please sign in to comment.