1
0
Fork 0
mirror of https://git.sr.ht/~ashkeel/strimertul synced 2024-09-18 01:50:50 +00:00

Add commands/modules page to Twitch subsection menu

This commit is contained in:
Ash Keel 2021-09-16 17:11:35 +02:00
parent 7d72a68fb6
commit 5337f5e275
No known key found for this signature in database
GPG key ID: BAD8D93E7314ED3E

View file

@ -16,6 +16,8 @@ import LoyaltyGoalsPage from './pages/loyalty/Goals';
import LoyaltyRedeemQueuePage from './pages/loyalty/Queue';
import TwitchSettingsPage from './pages/twitch/APISettings';
import TwitchBotSettingsPage from './pages/twitch/BotSettings';
import TwitchBotCommandsPage from './pages/twitch/Commands';
import TwitchBotModulesPage from './pages/twitch/Modules';
interface RouteItem {
name: string;
@ -44,6 +46,14 @@ const menu: RouteItem[] = [
name: 'Bot Configuration',
route: '/twitch/bot/settings',
},
{
name: 'Bot commands',
route: '/twitch/bot/commands',
},
{
name: 'Bot modules',
route: '/twitch/bot/modules',
},
],
},
{
@ -146,6 +156,8 @@ export default function App(): React.ReactElement {
<Redirect from="/" to="settings" noThrow />
<TwitchSettingsPage path="settings" />
<TwitchBotSettingsPage path="bot/settings" />
<TwitchBotCommandsPage path="bot/commands" />
<TwitchBotModulesPage path="bot/modules" />
</TwitchPage>
<LoyaltyPage path="loyalty">
<Redirect from="/" to="settings" noThrow />