mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-03-13 04:37:45 +08: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 React from "react";
|
||||||
|
|
||||||
import "@css/views/SideBar.scss";
|
|
||||||
import SideBarButton from "@app/ui/widgets/SideBarButton";
|
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> {
|
class SideBar extends React.Component<any, any> {
|
||||||
constructor(props: any) {
|
constructor(props: any) {
|
||||||
super(props);
|
super(props);
|
||||||
@ -11,7 +14,12 @@ class SideBar extends React.Component<any, any> {
|
|||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div className={"SideBar"}>
|
<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"}>
|
<div className={"SideBar_Buttons"}>
|
||||||
<SideBarButton name={"Commands"} anchor={"Commands"} />
|
<SideBarButton name={"Commands"} anchor={"Commands"} />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user