chore: upgrade dependencies (#7138)

* chore: upgrade dependencies

* reorg

* update comment
This commit is contained in:
Joshua Chen 2022-04-09 12:36:10 +08:00 committed by GitHub
parent e5bf59fd9b
commit 2a7820582c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 552 additions and 558 deletions

View file

@ -31,9 +31,12 @@ function useContextValue(): ContextValue {
const [tabGroupChoices, setChoices] = useState<{
readonly [groupId: string]: string;
}>({});
const setChoiceSyncWithLocalStorage = useCallback((groupId, newChoice) => {
createStorageSlot(`${TAB_CHOICE_PREFIX}${groupId}`).set(newChoice);
}, []);
const setChoiceSyncWithLocalStorage = useCallback(
(groupId: string, newChoice: string) => {
createStorageSlot(`${TAB_CHOICE_PREFIX}${groupId}`).set(newChoice);
},
[],
);
useEffect(() => {
try {