2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-01-08 04:07:59 +00:00

fix type errors

This commit is contained in:
Matthias Mair
2026-01-04 23:27:59 +01:00
parent a91dc89474
commit 8089a0db7d
2 changed files with 6 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
import type { Icon, IconProps } from '@tabler/icons-react'; import type { IconProps } from '@tabler/icons-react';
export type TablerIconType = React.ForwardRefExoticComponent< export type TablerIconType = React.ForwardRefExoticComponent<
Omit<IconProps, 'ref'> & React.RefAttributes<Icon> Omit<IconProps, 'ref'> & React.RefAttributes<SVGSVGElement>
>; >;
export type InvenTreeIconType = { export type InvenTreeIconType = {

View File

@@ -211,7 +211,10 @@ export default function PartStockHistoryDetail({
rightYAxisLabel={t`Stock Value`} rightYAxisLabel={t`Stock Value`}
tooltipProps={{ tooltipProps={{
content: ({ label, payload }) => ( content: ({ label, payload }) => (
<ChartTooltip label={label} payload={payload} /> <ChartTooltip
label={label}
payload={payload as Record<string, any>[]}
/>
) )
}} }}
yAxisProps={{ yAxisProps={{