From 5f6766305d5d28cfc001a3364ba122261ab1dbbc Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 26 May 2023 18:21:59 +0000 Subject: [PATCH] Lint Code [skip actions] --- src/handbook/src/ui/widgets/Character.tsx | 5 +---- src/handbook/src/ui/widgets/HomeButton.tsx | 3 +-- src/handbook/src/ui/widgets/SideBarButton.tsx | 3 +-- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/handbook/src/ui/widgets/Character.tsx b/src/handbook/src/ui/widgets/Character.tsx index 6b69aabd4..b3ba3ac9e 100644 --- a/src/handbook/src/ui/widgets/Character.tsx +++ b/src/handbook/src/ui/widgets/Character.tsx @@ -37,10 +37,7 @@ class Character extends React.PureComponent { const characterName = nameSwitch[id] ?? name; return ( -
+
{name} { * Checks if this component should be showed. */ private shouldShow(): boolean { - return !(((window as any).hide) as string[]) - .includes(this.props.anchor.toLowerCase()); + return !((window as any).hide as string[]).includes(this.props.anchor.toLowerCase()); } render() { diff --git a/src/handbook/src/ui/widgets/SideBarButton.tsx b/src/handbook/src/ui/widgets/SideBarButton.tsx index 83248560d..ab0c66ba2 100644 --- a/src/handbook/src/ui/widgets/SideBarButton.tsx +++ b/src/handbook/src/ui/widgets/SideBarButton.tsx @@ -28,8 +28,7 @@ class SideBarButton extends React.PureComponent { * Checks if this component should be showed. */ private shouldShow(): boolean { - return !(((window as any).hide) as string[]) - .includes(this.props.anchor.toLowerCase()); + return !((window as any).hide as string[]).includes(this.props.anchor.toLowerCase()); } render() {