Skip to content

Commit

Permalink
ISSUE #4959 - fix linter errors about icons type
Browse files Browse the repository at this point in the history
  • Loading branch information
Amantini1997 committed Jun 12, 2024
1 parent 1c0fc68 commit eb2f0d4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions frontend/src/v4/constants/viewerGui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,16 @@ export const VIEWER_PANELS = {
export const VIEWER_PANELS_ICONS = {
[VIEWER_PANELS.ISSUES]: IssuesIcon,
[VIEWER_PANELS.RISKS]: RisksIcon,
[VIEWER_PANELS.TICKETS]: TicketsIcon as ComponentType,
[VIEWER_PANELS.TICKETS]: TicketsIcon,
[VIEWER_PANELS.GROUPS]: GroupsIcon,
[VIEWER_PANELS.VIEWS]: ViewsIcon,
[VIEWER_PANELS.TREE]: TreeIcon,
[VIEWER_PANELS.COMPARE]: CompareIcon,
[VIEWER_PANELS.GIS]: GisIcon,
[VIEWER_PANELS.SEQUENCES]: SequencesIcon,
[VIEWER_PANELS.MEASUREMENTS]: MeasureIcon,
[VIEWER_PANELS.DRAWINGS]: DrawingsIcon as ComponentType,
};
[VIEWER_PANELS.DRAWINGS]: DrawingsIcon,
} as Record<string, ComponentType>;

export const VIEWER_PANELS_MIN_HEIGHTS = {
[VIEWER_PANELS.ISSUES]: 200,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const SequenceDate = ({ name, onChange, showSequenceDate, min, max, initialFocus
/>
{ value &&
<SequenceDateActions>
<SmallIconButton onClick={(e) => showSequenceDate(value)} Icon={SequencesIcon} disabled={!hasSequences} />
<SmallIconButton onClick={(e) => showSequenceDate(value)} Icon={SequencesIcon as any} disabled={!hasSequences} />
<SmallIconButton onClick={deleteValue} Icon={CloseIcon} />
</SequenceDateActions>
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class PanelsMenu extends PureComponent<any, IState> {
);
}

private renderButtons = () => this.toolbarList.map((buttonProps, index) => (
private renderButtons = () => this.toolbarList.map((buttonProps: any, index) => (
<TooltipButton
{...buttonProps}
key={index}
Expand Down

0 comments on commit eb2f0d4

Please sign in to comment.