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:
@@ -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 = {
|
||||||
|
|||||||
@@ -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={{
|
||||||
|
|||||||
Reference in New Issue
Block a user