Go home when title is clicked

This commit is contained in:
Magix 2023-04-06 22:03:16 +00:00
parent 314c8771da
commit a12bcef065

View File

@ -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"} />