Skip to content

Commit

Permalink
🩹 hide status icon tooltip in apps filter
Browse files Browse the repository at this point in the history
  • Loading branch information
eyemono-moe committed Dec 3, 2023
1 parent c947af7 commit fd74dfa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dashboard/src/components/templates/app/AppStatusIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const components: Record<ApplicationState, (size: IconProps) => JSXElement> = {
interface Props {
state: ApplicationState
size?: number
hideTooltip?: boolean
}

export const AppStatusIcon = (props: Props): JSXElement => {
Expand All @@ -47,6 +48,7 @@ export const AppStatusIcon = (props: Props): JSXElement => {
props={{
content: props.state,
}}
disabled={props.hideTooltip}
>
<Dynamic component={components[props.state]} size={props.size ?? 24} />
</ToolTip>
Expand Down
2 changes: 1 addition & 1 deletion dashboard/src/components/templates/app/AppsFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ const AppsFilter: Component<{
<Checkbox.Indicator forceMount class={indicatorStyle}>
<CheckBoxIcon checked={props.statuses.includes(s.value)} />
</Checkbox.Indicator>
<AppStatusIcon state={s.value} />
<AppStatusIcon state={s.value} hideTooltip />
{s.label}
</Checkbox.Label>
</Checkbox.Root>
Expand Down

0 comments on commit fd74dfa

Please sign in to comment.