feat: page tab context (#845)
* feat: page list tab context added * fix: build fix
This commit is contained in:
parent
365c758a25
commit
3f401b0fc5
2 changed files with 43 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { useState, useEffect, useCallback } from "react";
|
||||
|
||||
const getValueFromLocalStorage = (key: string, defaultValue: any) => {
|
||||
if (typeof window === undefined || typeof window === "undefined") return defaultValue;
|
||||
try {
|
||||
const item = window.localStorage.getItem(key);
|
||||
return item ? JSON.parse(item) : defaultValue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue