make links more distinguishable

This commit is contained in:
Matthias Mair 2024-04-16 23:41:18 +02:00
parent 2f4d74a180
commit 9ca80d612b
No known key found for this signature in database
GPG Key ID: A593429DDA23B66A

View File

@ -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>
); );
} }