mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
add quickjump anchors
This commit is contained in:
parent
6cafba9778
commit
f8cdf9c19d
@ -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,
|
||||||
@ -51,7 +59,14 @@ export default function PricingOverviewPanel({
|
|||||||
return (
|
return (
|
||||||
<Group position="left" spacing="xs">
|
<Group position="left" spacing="xs">
|
||||||
{record.icon}
|
{record.icon}
|
||||||
<Text weight={700}>{record.title}</Text>
|
{record.name !== panelOptions.overall &&
|
||||||
|
record.name !== panelOptions.override ? (
|
||||||
|
<Anchor href={`#${record.name}`} weight={700}>
|
||||||
|
{record.title}
|
||||||
|
</Anchor>
|
||||||
|
) : (
|
||||||
|
<Text weight={700}>{record.title}</Text>
|
||||||
|
)}
|
||||||
</Group>
|
</Group>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@ export default function PricingPanel({
|
|||||||
const is_disabled = disabled === undefined ? false : disabled;
|
const is_disabled = disabled === undefined ? false : disabled;
|
||||||
return (
|
return (
|
||||||
visible && (
|
visible && (
|
||||||
<Accordion.Item value={label}>
|
<Accordion.Item value={label} id={label}>
|
||||||
<AccordionControl disabled={is_disabled}>
|
<AccordionControl disabled={is_disabled}>
|
||||||
<StylishText size="lg">{title}</StylishText>
|
<StylishText size="lg">{title}</StylishText>
|
||||||
</AccordionControl>
|
</AccordionControl>
|
||||||
|
Loading…
Reference in New Issue
Block a user