Merge branch 'main' into i18n

This commit is contained in:
Spencer Woo
2022-02-08 21:58:03 +08:00
committed by GitHub
6 changed files with 22 additions and 14 deletions
+4 -1
View File
@@ -24,7 +24,10 @@ const Navbar = () => {
const [searchOpen, setSearchOpen] = useState(false)
const openSearchBox = () => setSearchOpen(true)
useHotkeys(`${os === 'mac' ? 'cmd' : 'ctrl'}+k`, openSearchBox)
useHotkeys(`${os === 'mac' ? 'cmd' : 'ctrl'}+k`, e => {
openSearchBox()
e.preventDefault()
})
useEffect(() => {
const storedToken = () => {