mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
make links more distinguishable
This commit is contained in:
parent
2f4d74a180
commit
9ca80d612b
@ -1,5 +1,13 @@
|
|||||||
import { t } from '@lingui/macro';
|
import { t } from '@lingui/macro';
|
||||||
import { Alert, Group, Paper, SimpleGrid, Stack, Text } from '@mantine/core';
|
import {
|
||||||
|
Alert,
|
||||||
|
Anchor,
|
||||||
|
Group,
|
||||||
|
Paper,
|
||||||
|
SimpleGrid,
|
||||||
|
Stack,
|
||||||
|
Text
|
||||||
|
} from '@mantine/core';
|
||||||
import {
|
import {
|
||||||
IconBuildingWarehouse,
|
IconBuildingWarehouse,
|
||||||
IconChartDonut,
|
IconChartDonut,
|
||||||
@ -50,12 +58,21 @@ export default function PricingOverviewPanel({
|
|||||||
accessor: 'title',
|
accessor: 'title',
|
||||||
title: t`Pricing Category`,
|
title: t`Pricing Category`,
|
||||||
render: (record: PricingOverviewEntry) => {
|
render: (record: PricingOverviewEntry) => {
|
||||||
|
const is_link = record.name !== panelOptions.overall;
|
||||||
return (
|
return (
|
||||||
<Group position="left" spacing="xs">
|
<Group position="left" spacing="xs">
|
||||||
{record.icon}
|
{record.icon}
|
||||||
<Text weight={700} onClick={() => doNavigation(record.name)}>
|
{is_link ? (
|
||||||
{record.title}
|
<Anchor
|
||||||
</Text>
|
weight={700}
|
||||||
|
onClick={() => doNavigation(record.name)}
|
||||||
|
component={Text}
|
||||||
|
>
|
||||||
|
{record.title}
|
||||||
|
</Anchor>
|
||||||
|
) : (
|
||||||
|
<Text weight={700}>{record.title}</Text>
|
||||||
|
)}
|
||||||
</Group>
|
</Group>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user