mirror of
https://git.sr.ht/~ashkeel/strimertul
synced 2024-09-20 02:00:49 +00:00
Add commands/modules page to Twitch subsection menu
This commit is contained in:
parent
7d72a68fb6
commit
5337f5e275
1 changed files with 12 additions and 0 deletions
|
@ -16,6 +16,8 @@ import LoyaltyGoalsPage from './pages/loyalty/Goals';
|
||||||
import LoyaltyRedeemQueuePage from './pages/loyalty/Queue';
|
import LoyaltyRedeemQueuePage from './pages/loyalty/Queue';
|
||||||
import TwitchSettingsPage from './pages/twitch/APISettings';
|
import TwitchSettingsPage from './pages/twitch/APISettings';
|
||||||
import TwitchBotSettingsPage from './pages/twitch/BotSettings';
|
import TwitchBotSettingsPage from './pages/twitch/BotSettings';
|
||||||
|
import TwitchBotCommandsPage from './pages/twitch/Commands';
|
||||||
|
import TwitchBotModulesPage from './pages/twitch/Modules';
|
||||||
|
|
||||||
interface RouteItem {
|
interface RouteItem {
|
||||||
name: string;
|
name: string;
|
||||||
|
@ -44,6 +46,14 @@ const menu: RouteItem[] = [
|
||||||
name: 'Bot Configuration',
|
name: 'Bot Configuration',
|
||||||
route: '/twitch/bot/settings',
|
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 />
|
<Redirect from="/" to="settings" noThrow />
|
||||||
<TwitchSettingsPage path="settings" />
|
<TwitchSettingsPage path="settings" />
|
||||||
<TwitchBotSettingsPage path="bot/settings" />
|
<TwitchBotSettingsPage path="bot/settings" />
|
||||||
|
<TwitchBotCommandsPage path="bot/commands" />
|
||||||
|
<TwitchBotModulesPage path="bot/modules" />
|
||||||
</TwitchPage>
|
</TwitchPage>
|
||||||
<LoyaltyPage path="loyalty">
|
<LoyaltyPage path="loyalty">
|
||||||
<Redirect from="/" to="settings" noThrow />
|
<Redirect from="/" to="settings" noThrow />
|
||||||
|
|
Loading…
Reference in a new issue