@@ -22,7 +22,6 @@ function ActiveLink({ children, href, className, currentPath }) {
23export default function Header(props) {
23export default function Header(props) {
24 const [isOpen, setTray] = useState(false);
24 const [isOpen, setTray] = useState(false);
25− const [shortcut, setShortcut] = useState("");
27 const currentPath = useRouter().asPath;
26 const currentPath = useRouter().asPath;
@@ -30,21 +29,6 @@ export default function Header(props) {
31 const firstCrumb = currentPath.split("/")[1];
30 const firstCrumb = currentPath.split("/")[1];
33− const detectOS = () => {
34− const agent = window.navigator.appVersion;
35− if (agent.includes("Win")) {
37− } else if (agent.includes("Mac")) {
39− } else if (agent.includes("Linux")) {
45− setShortcut(detectOS());
49 <header className="layout px-4 md:px-8 flex justify-between items-center pt-8 md:pt-10 lg:pt-12 pb-10 md:pb-12 lg:pb-24">
33 <header className="layout px-4 md:px-8 flex justify-between items-center pt-8 md:pt-10 lg:pt-12 pb-10 md:pb-12 lg:pb-24">
@@ -105,16 +89,6 @@ export default function Header(props) {
107 </ActiveLink>
91 </ActiveLink>
110− e.stopPropagation();
111− props.search.toggleSearch(e);
113− className="bg-wall-100 text-wall-500 flex px-4 py-1 rounded-lg type-ui"
116− <div className="ml-4 text-wall-400">{shortcut}</div>