mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-27 02:43:15 +00:00
Go home when title is clicked
This commit is contained in:
parent
314c8771da
commit
a12bcef065
@ -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"} />
|
||||
|
Loading…
Reference in New Issue
Block a user