mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: update location store handler (#1273)
* chore: update location store handler * chore: update search bar
This commit is contained in:
@ -1,6 +1,4 @@
|
||||
import { isUndefined } from "lodash-es";
|
||||
import { useEffect } from "react";
|
||||
import { useLocationStore } from "../store/module";
|
||||
import ShortcutList from "./ShortcutList";
|
||||
import TagList from "./TagList";
|
||||
import SearchBar from "./SearchBar";
|
||||
@ -8,13 +6,6 @@ import UsageHeatMap from "./UsageHeatMap";
|
||||
import "../less/home-sidebar.less";
|
||||
|
||||
const HomeSidebar = () => {
|
||||
const locationStore = useLocationStore();
|
||||
const query = locationStore.state.query;
|
||||
|
||||
useEffect(() => {
|
||||
toggleHomeSidebar(false);
|
||||
}, [query]);
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="mask" onClick={() => toggleHomeSidebar(false)}></div>
|
||||
|
Reference in New Issue
Block a user