mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-09 17:53:17 +08:00
Lint Code [skip actions]
This commit is contained in:
parent
b0714f209c
commit
5f6766305d
@ -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}
|
||||
|
@ -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() {
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user