Skip to content

Commit b70cbb2

Browse files
committed
Endret icon og skrevet root ved for å være tydelig
1 parent 829463d commit b70cbb2

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

app/(sanity)/studio/[[...index]]/navbar.tsx

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,30 @@
11
"use client"
22

33
import { type ToolMenuProps } from "sanity"
4-
import { HomeIcon } from "@heroicons/react/24/outline"
54
import { defaultIconSize } from "@/components/icons/icon"
5+
import { ArrowTopRightOnSquareIcon } from "@heroicons/react/24/outline"
66

77
/**
88
* En custom toolmenu for sanity studio. Som legger til en lenke tilbake root-nettsiden.
99
* @param props Props som sendes fra sanity studio.
1010
*/
1111
const SanityToolMenu: Component<ToolMenuProps> = props => (
12-
<div style={{ display: "flex" }}>
12+
<div style={{ display: "flex", alignItems: "center" }}>
1313
<a
1414
href={process.env.NEXT_PUBLIC_BASE_URL}
1515
rel={"noopener"}
1616
target={"_blank"}
17+
style={{
18+
display: "flex",
19+
alignItems: "center",
20+
gap: "5px",
21+
color: "white",
22+
textDecoration: "none",
23+
fontSize: "small",
24+
}}
1725
title={"Tilbake til Root"}>
18-
<HomeIcon width={defaultIconSize} style={{ color: "white" }} />
26+
<ArrowTopRightOnSquareIcon width={defaultIconSize} />
27+
<p>Root</p>
1928
</a>
2029
<div style={{ width: "100%" }}>{props.renderDefault(props)}</div>
2130
</div>

0 commit comments

Comments
 (0)