Skip to content

Commit 6c1ede3

Browse files
Merge branch 'main' of https://github.com/gridaco/designto-code into staging
2 parents 5f41834 + 275e06a commit 6c1ede3

2 files changed

Lines changed: 13 additions & 21 deletions

File tree

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

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,24 @@ import styled from "@emotion/styled";
33
import { ArrowBack } from "@material-ui/icons";
44
import { useRouter } from "next/router";
55
import { colors } from "theme";
6+
import ClientOnly from "components/client-only";
67

78
export 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-
`;

externals/design-sdk

0 commit comments

Comments
 (0)