mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-14 17:58:02 -05:00
cleanup
This commit is contained in:
@@ -1,25 +1,9 @@
|
|||||||
import React, { useState } from "react";
|
import React from "react";
|
||||||
import { Link } from 'react-router-dom'
|
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 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 (
|
return (
|
||||||
|
|||||||
@@ -25,15 +25,14 @@ import { AreaClosed, Line, Bar } from '@visx/shape';
|
|||||||
import { curveMonotoneX } from '@visx/curve';
|
import { curveMonotoneX } from '@visx/curve';
|
||||||
import { GridRows, GridColumns } from '@visx/grid';
|
import { GridRows, GridColumns } from '@visx/grid';
|
||||||
import { scaleTime, scaleLinear } from '@visx/scale';
|
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 { useTooltip, useTooltipInPortal } from '@visx/tooltip';
|
||||||
import { localPoint } from '@visx/event';
|
import { localPoint } from '@visx/event';
|
||||||
import { LinearGradient } from '@visx/gradient';
|
import { LinearGradient } from '@visx/gradient';
|
||||||
import { max, extent, bisector } from 'd3-array';
|
import { max, extent, bisector } from 'd3-array';
|
||||||
import { timeFormat } from 'd3-time-format';
|
import { timeFormat } from 'd3-time-format';
|
||||||
import { AxisLeft } from '@visx/axis';
|
import { AxisLeft } from '@visx/axis';
|
||||||
import { useDispatch } from 'react-redux'
|
import { useGetSystemsQuery, useGetSiteStatsQuery } from "../features/api/apiSlice";
|
||||||
import { useGetStatsQuery, 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 */
|
/* 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 DesktopContainer = (props) => {
|
||||||
const [fixed, setFixed] = useState(false);
|
const [fixed, setFixed] = useState(false);
|
||||||
const hideFixedMenu = () => setFixed(false)
|
|
||||||
const showFixedMenu = () => setFixed(true)
|
|
||||||
|
|
||||||
const { children } = props
|
const { children } = props
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user