Fixes #5452
This commit is contained in:
Matthias Mair 2023-08-16 01:53:54 +02:00 committed by GitHub
parent d25e9e2b2e
commit c796e79cf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 5 deletions

View File

@ -1,6 +1,7 @@
import { Trans } from '@lingui/macro';
import { DocumentationLinkItem } from '../components/items/DocumentationLinks';
import { IS_DEV_OR_DEMO } from '../main';
export const footerLinks = [
{
@ -22,11 +23,13 @@ export const footerLinks = [
export const navTabs = [
{ text: <Trans>Home</Trans>, name: 'home' },
{ text: <Trans>Dashboard</Trans>, name: 'dashboard' },
{ text: <Trans>Playground</Trans>, name: 'playground' },
{ text: <Trans>Parts</Trans>, name: 'parts' },
{ text: <Trans>Stock</Trans>, name: 'stock' },
{ text: <Trans>Build</Trans>, name: 'build' }
];
if (IS_DEV_OR_DEMO) {
navTabs.push({ text: <Trans>Playground</Trans>, name: 'playground' });
}
export const docLinks = {
app: 'https://docs.inventree.org/en/latest/app/app/',

View File

@ -2,6 +2,7 @@ import { Trans, t } from '@lingui/macro';
import { Image, Text } from '@mantine/core';
import { MenuLinkItem } from '../components/items/MenuLinks';
import { IS_DEV_OR_DEMO } from '../main';
export const menuItems: MenuLinkItem[] = [
{
@ -15,11 +16,14 @@ export const menuItems: MenuLinkItem[] = [
text: <Trans>Profile page</Trans>,
link: '/profile/user',
doctext: <Trans>User attributes and design settings.</Trans>
},
{
}
];
if (IS_DEV_OR_DEMO) {
menuItems.push({
id: 'playground',
text: <Trans>Playground</Trans>,
link: '/playground',
highlight: true
}
];
});
}