diff options
| author | JP Dillingham <jp@dillingham.me> | 2023-07-23 17:46:44 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2023-07-23 17:46:44 -0500 |
| commit | 29ee68346f6649fe4a3865645d565f4752c2a92d (patch) | |
| tree | b7c0aab618a69bfaf5cbc599d976784dcf3714b8 /src | |
| parent | 1d45cca6c22c6a0f8c3fcdb50f2c9985459d4730 (diff) | |
| download | slskd-29ee68346f6649fe4a3865645d565f4752c2a92d.tar.gz | |
remove tab tracking
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/src/components/System/Files/index.js | 13 |
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> ); |
