File tree Expand file tree Collapse file tree 2 files changed +13
-21
lines changed
editor/components/editor/editor-appbar Expand file tree Collapse file tree 2 files changed +13
-21
lines changed Original file line number Diff line number Diff line change @@ -3,26 +3,24 @@ import styled from "@emotion/styled";
33import { ArrowBack } from "@material-ui/icons" ;
44import { useRouter } from "next/router" ;
55import { colors } from "theme" ;
6+ import ClientOnly from "components/client-only" ;
67
78export function AppbarFragmentForSidebar ( ) {
89 const router = useRouter ( ) ;
910
1011 return (
1112 < RootWrapperAppbarFragmentForSidebar >
12- < ArrowBack
13- style = { {
14- fontSize : "20px" ,
15- fill : "white" ,
16- } }
17- onClick = { ( ) => {
18- router . push ( "/" ) ;
19- } }
20- />
21- { /* <IconsMdiMenu
22- // TODO: replace resource
23- src="https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/333b/8550/4bdd6a7ceffe5b23b37bc68c1fb7a4ab"
24- alt="image of IconsMdiMenu"
25- ></IconsMdiMenu> */ }
13+ < ClientOnly >
14+ < ArrowBack
15+ style = { {
16+ fontSize : "20px" ,
17+ fill : "white" ,
18+ } }
19+ onClick = { ( ) => {
20+ router . push ( "/" ) ;
21+ } }
22+ />
23+ </ ClientOnly >
2624 </ RootWrapperAppbarFragmentForSidebar >
2725 ) ;
2826}
@@ -40,9 +38,3 @@ const RootWrapperAppbarFragmentForSidebar = styled.div`
4038 box-sizing: border-box;
4139 padding: 14px 16px;
4240` ;
43-
44- const IconsMdiMenu = styled . img `
45- width: 24px;
46- height: 24px;
47- object-fit: cover;
48- ` ;
You can’t perform that action at this time.
0 commit comments