From 7b779afd7d47ee83dd1a3bad8c819a4e7f9811c1 Mon Sep 17 00:00:00 2001 From: Viki Date: Tue, 18 Jun 2024 15:39:02 +0800 Subject: [PATCH] docs: set favicon --- website/src/theme/Root.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/website/src/theme/Root.tsx b/website/src/theme/Root.tsx index 641bdb06..0e120212 100644 --- a/website/src/theme/Root.tsx +++ b/website/src/theme/Root.tsx @@ -1,6 +1,12 @@ import 'uno.css' + import React from 'react' +import { useFavicon, useMount } from '@site/../src' export default function Root({ children }) { + const [_, actions] = useFavicon() + + useMount(() => actions.setEmojiFavicon('🪝')) + return <>{children} }