Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2022-11-29 14:52:07 +01:00
parent 5fb6d5e92e
commit 95c85f5b5a
2 changed files with 3 additions and 3 deletions
@@ -151,7 +151,7 @@ export function SidebarIntro(_props: {}) {
starredItemsDismissed: false,
recentlyViewedItemsDismissed: false,
};
const [dismissedIntro, setDismissedIntro] =
const { value: dismissedIntro, set: setDismissedIntro } =
useLocalStorageValue<SidebarIntroLocalStorage>(SIDEBAR_INTRO_LOCAL_STORAGE);
const { starredItemsDismissed, recentlyViewedItemsDismissed } =
@@ -61,10 +61,10 @@ type expandableNavigationLocalStorage = {
*/
export const ExpandableNavigationAddon = () => {
const defaultValue = { expandAllNestedNavs: false };
const [expanded, setExpanded] =
const { value: expanded, set: setExpanded } =
useLocalStorageValue<expandableNavigationLocalStorage>(
EXPANDABLE_NAVIGATION_LOCAL_STORAGE,
defaultValue,
{ defaultValue },
);
const [hasNavSubLevels, setHasNavSubLevels] = useState<boolean>(false);