aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2023-07-23 17:46:44 -0500
committerJP Dillingham <jp@dillingham.me>2023-07-23 17:46:44 -0500
commit29ee68346f6649fe4a3865645d565f4752c2a92d (patch)
treeb7c0aab618a69bfaf5cbc599d976784dcf3714b8
parent1d45cca6c22c6a0f8c3fcdb50f2c9985459d4730 (diff)
downloadslskd-29ee68346f6649fe4a3865645d565f4752c2a92d.tar.gz
remove tab tracking
-rw-r--r--src/web/src/components/System/Files/index.js13
1 files changed, 3 insertions, 10 deletions
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: () => <Tab.Pane><Explorer root={'downloads'} isActive={tab === 'incomplete'}/></Tab.Pane>,
+ render: () => <Tab.Pane><Explorer root={'downloads'}/></Tab.Pane>,
},
{
route: 'incomplete',
menuItem: 'Incomplete',
- render: () => <Tab.Pane><Explorer root={'incomplete'} isActive={tab === 'incomplete'}/></Tab.Pane>,
+ render: () => <Tab.Pane><Explorer root={'incomplete'}/></Tab.Pane>,
},
];
- const onTabChange = (e, { activeIndex }) => {
- setTab(panes[activeIndex].route);
- };
-
return (
<div>
<Tab
panes={panes}
- onTabChange={onTabChange}
/>
</div>
);