mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
fix(docs): search button on not-found page (#28326)
I missed a place when swapping the old command menu out for the new one.
This commit is contained in:
1 parent
ed98d0fc54
commit
ada71a1958
1 file changed
+2
-3
@@ -2,10 +2,9 @@
|
||||
|
||||
import { useSupabaseClient } from '@supabase/auth-helpers-react'
|
||||
import { type SupabaseClient } from '@supabase/supabase-js'
|
||||
import { X } from 'lucide-react'
|
||||
import { useEffect, useRef, useState } from 'react'
|
||||
|
||||
import { useCommandMenu } from '@ui-patterns/Cmdk'
|
||||
import { useSetCommandMenuOpen } from '@ui-patterns/CommandMenu'
|
||||
import { GenericSkeletonLoader } from '@ui-patterns/ShimmeringLoader'
|
||||
import { type DocsSearchResult } from 'common'
|
||||
import { Button, cn } from 'ui'
|
||||
@@ -13,7 +12,7 @@ import { Button, cn } from 'ui'
|
||||
import ButtonCard from '~/components/ButtonCard'
|
||||
|
||||
function SearchButton() {
|
||||
const { setIsOpen: setCommandMenuOpen } = useCommandMenu()
|
||||
const setCommandMenuOpen = useSetCommandMenuOpen()
|
||||
|
||||
return (
|
||||
<Button type="primary" size="small" onClick={() => setCommandMenuOpen(true)}>
|
||||
|
||||
Reference in new issue
Block a user