File tree Expand file tree Collapse file tree
app/(sanity)/studio/[[...index]] Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11"use client"
22
33import { type ToolMenuProps } from "sanity"
4- import { HomeIcon } from "@heroicons/react/24/outline"
54import { 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 */
1111const 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 >
You can’t perform that action at this time.
0 commit comments