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 { Alert, Group, Paper, SimpleGrid, Stack, Text } from '@mantine/core';
|
||||
import {
|
||||
Alert,
|
||||
Anchor,
|
||||
Group,
|
||||
Paper,
|
||||
SimpleGrid,
|
||||
Stack,
|
||||
Text
|
||||
} from '@mantine/core';
|
||||
import {
|
||||
IconBuildingWarehouse,
|
||||
IconChartDonut,
|
||||
@ -51,7 +59,14 @@ export default function PricingOverviewPanel({
|
||||
return (
|
||||
<Group position="left" spacing="xs">
|
||||
{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>
|
||||
);
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ export default function PricingPanel({
|
||||
const is_disabled = disabled === undefined ? false : disabled;
|
||||
return (
|
||||
visible && (
|
||||
<Accordion.Item value={label}>
|
||||
<Accordion.Item value={label} id={label}>
|
||||
<AccordionControl disabled={is_disabled}>
|
||||
<StylishText size="lg">{title}</StylishText>
|
||||
</AccordionControl>
|
||||
|
Loading…
Reference in New Issue
Block a user