feat: delete all releases from settings (#170)

This commit is contained in:
Ludvig Lundgren 2022-03-06 18:08:32 +01:00 committed by GitHub
parent c28c6186d9
commit 3b43ccba8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 148 additions and 14 deletions

View file

@ -1,4 +1,4 @@
import {CogIcon, DownloadIcon, KeyIcon} from '@heroicons/react/outline'
import {CogIcon, CollectionIcon, DownloadIcon, KeyIcon} from '@heroicons/react/outline'
import {NavLink, Route, Switch as RouteSwitch, useLocation, useRouteMatch} from "react-router-dom";
import { classNames } from "../utils";
@ -7,12 +7,14 @@ import { IrcSettings } from "./settings/Irc";
import ApplicationSettings from "./settings/Application";
import DownloadClientSettings from "./settings/DownloadClient";
import { RegexPlayground } from './settings/RegexPlayground';
import ReleaseSettings from "./settings/Releases";
const subNavigation = [
{name: 'Application', href: '', icon: CogIcon, current: true},
{name: 'Indexers', href: 'indexers', icon: KeyIcon, current: false},
{name: 'IRC', href: 'irc', icon: KeyIcon, current: false},
{name: 'Clients', href: 'clients', icon: DownloadIcon, current: false},
{name: 'Releases', href: 'releases', icon: CollectionIcon, current: false},
// {name: 'Regex Playground', href: 'regex-playground', icon: CogIcon, current: false}
// {name: 'Actions', href: 'actions', icon: PlayIcon, current: false},
// {name: 'Rules', href: 'rules', icon: ClipboardCheckIcon, current: false},
@ -91,6 +93,10 @@ export default function Settings() {
<DownloadClientSettings/>
</Route>
<Route path={`${url}/releases`}>
<ReleaseSettings/>
</Route>
{/*<Route path={`${url}/actions`}>
<ActionSettings/>
</Route>*/}