feat(directory): add serach box

This commit is contained in:
Haoyu Xu
2023-06-24 05:42:50 -04:00
parent c62cf195cd
commit b40dfa62f2
10 changed files with 533 additions and 373 deletions

View File

@@ -67,7 +67,8 @@ export default function Operator() {
const {
setTitle,
setTabs,
setHeaderIcon
setHeaderIcon,
setFastNavigation
} = useHeader()
const { setExtraArea } = useAppbar()
const [config, setConfig] = useState(null)
@@ -110,7 +111,8 @@ export default function Operator() {
useEffect(() => {
setExtraArea([])
}, [setExtraArea])
setFastNavigation([])
}, [setExtraArea, setFastNavigation])
useEffect(() => {
if (backgrounds.length > 0) setCurrentBackground(backgrounds[0])