Merge remote-tracking branch 'origin/unstable' into unstable

This commit is contained in:
KingRainbow44 2023-05-26 14:52:39 -04:00
commit 1fef3f8a05
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE
3 changed files with 3 additions and 8 deletions

View File

@ -37,10 +37,7 @@ class Character extends React.PureComponent<IProps> {
const characterName = nameSwitch[id] ?? name;
return (
<div
className={"Character"}
onClick={this.props.onClick}
>
<div className={"Character"} onClick={this.props.onClick}>
<img
className={"Character_Icon"}
alt={name}

View File

@ -28,8 +28,7 @@ class HomeButton extends React.PureComponent<IProps> {
* 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() {

View File

@ -28,8 +28,7 @@ class SideBarButton extends React.PureComponent<IProps> {
* 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() {