mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-17 01:15:52 +01:00
Go home when title is clicked
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
import React from "react";
|
||||
|
||||
import "@css/views/SideBar.scss";
|
||||
import SideBarButton from "@app/ui/widgets/SideBarButton";
|
||||
|
||||
import { navigate } from "@app/backend/events";
|
||||
|
||||
import "@css/views/SideBar.scss";
|
||||
|
||||
class SideBar extends React.Component<any, any> {
|
||||
constructor(props: any) {
|
||||
super(props);
|
||||
@@ -11,7 +14,12 @@ class SideBar extends React.Component<any, any> {
|
||||
render() {
|
||||
return (
|
||||
<div className={"SideBar"}>
|
||||
<h1 className={"SideBar_Title"}>The Ultimate Anime Game Handbook</h1>
|
||||
<h1
|
||||
className={"SideBar_Title"}
|
||||
onClick={() => navigate("Home")}
|
||||
>
|
||||
The Ultimate Anime Game Handbook
|
||||
</h1>
|
||||
|
||||
<div className={"SideBar_Buttons"}>
|
||||
<SideBarButton name={"Commands"} anchor={"Commands"} />
|
||||
|
||||
Reference in New Issue
Block a user