From 29ee68346f6649fe4a3865645d565f4752c2a92d Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 23 Jul 2023 17:46:44 -0500 Subject: remove tab tracking --- src/web/src/components/System/Files/index.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/web/src/components/System/Files/index.js b/src/web/src/components/System/Files/index.js index 07e91a96..cf3dc869 100644 --- a/src/web/src/components/System/Files/index.js +++ b/src/web/src/components/System/Files/index.js @@ -1,34 +1,27 @@ -import React, { useState } from 'react'; +import React from 'react'; import { Tab } from 'semantic-ui-react'; import './Files.css'; import Explorer from './Explorer'; const Files = () => { - const [tab, setTab] = useState('downloads'); - const panes = [ { route: 'downloads', menuItem: 'Downloads', - render: () => , + render: () => , }, { route: 'incomplete', menuItem: 'Incomplete', - render: () => , + render: () => , }, ]; - const onTabChange = (e, { activeIndex }) => { - setTab(panes[activeIndex].route); - }; - return (
); -- cgit v1.2.3