mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 21:25:42 +00:00 
			
		
		
		
	add quickjump anchors
This commit is contained in:
		| @@ -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> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user