mirror of
https://github.com/inventree/InvenTree.git
synced 2026-01-07 03:37:56 +00:00
fix type errors
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import type { Icon, IconProps } from '@tabler/icons-react';
|
||||
import type { IconProps } from '@tabler/icons-react';
|
||||
|
||||
export type TablerIconType = React.ForwardRefExoticComponent<
|
||||
Omit<IconProps, 'ref'> & React.RefAttributes<Icon>
|
||||
Omit<IconProps, 'ref'> & React.RefAttributes<SVGSVGElement>
|
||||
>;
|
||||
|
||||
export type InvenTreeIconType = {
|
||||
|
||||
@@ -211,7 +211,10 @@ export default function PartStockHistoryDetail({
|
||||
rightYAxisLabel={t`Stock Value`}
|
||||
tooltipProps={{
|
||||
content: ({ label, payload }) => (
|
||||
<ChartTooltip label={label} payload={payload} />
|
||||
<ChartTooltip
|
||||
label={label}
|
||||
payload={payload as Record<string, any>[]}
|
||||
/>
|
||||
)
|
||||
}}
|
||||
yAxisProps={{
|
||||
|
||||
Reference in New Issue
Block a user