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 { Alert, Group, Paper, SimpleGrid, Stack, Text } from '@mantine/core';
|
||||
import {
|
||||
Alert,
|
||||
Anchor,
|
||||
Group,
|
||||
Paper,
|
||||
SimpleGrid,
|
||||
Stack,
|
||||
Text
|
||||
} from '@mantine/core';
|
||||
import {
|
||||
IconBuildingWarehouse,
|
||||
IconChartDonut,
|
||||
@ -50,12 +58,21 @@ export default function PricingOverviewPanel({
|
||||
accessor: 'title',
|
||||
title: t`Pricing Category`,
|
||||
render: (record: PricingOverviewEntry) => {
|
||||
const is_link = record.name !== panelOptions.overall;
|
||||
return (
|
||||
<Group position="left" spacing="xs">
|
||||
{record.icon}
|
||||
<Text weight={700} onClick={() => doNavigation(record.name)}>
|
||||
{record.title}
|
||||
</Text>
|
||||
{is_link ? (
|
||||
<Anchor
|
||||
weight={700}
|
||||
onClick={() => doNavigation(record.name)}
|
||||
component={Text}
|
||||
>
|
||||
{record.title}
|
||||
</Anchor>
|
||||
) : (
|
||||
<Text weight={700}>{record.title}</Text>
|
||||
)}
|
||||
</Group>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user