Skip to content

Commit 565e05d

Browse files
add back to dashboard routing
1 parent f190695 commit 565e05d

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

editor/components/editor/editor-appbar/editor-appbar-fragment-for-sidebar.tsx

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
import React from "react";
22
import styled from "@emotion/styled";
3+
import { ArrowBack } from "@material-ui/icons";
4+
import { useRouter } from "next/router";
35

46
export function AppbarFragmentForSidebar() {
7+
const router = useRouter();
8+
59
return (
610
<RootWrapperAppbarFragmentForSidebar>
7-
<div
11+
<ArrowBack
812
style={{
9-
width: 24,
10-
height: 24,
13+
fontSize: "20px",
14+
fill: "white",
15+
}}
16+
onClick={() => {
17+
router.push("/");
1118
}}
12-
></div>
19+
/>
1320
{/* <IconsMdiMenu
1421
// TODO: replace resource
1522
src="https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/333b/8550/4bdd6a7ceffe5b23b37bc68c1fb7a4ab"

0 commit comments

Comments
 (0)