Rewrite useLocalStorageState hook

This commit is contained in:
Michael Telatynski 2020-08-27 10:27:27 +01:00
parent dc08fee635
commit 89ec90cf04
3 changed files with 45 additions and 38 deletions

View file

@ -32,7 +32,7 @@ import {IntegrationManagers} from "../../../integrations/IntegrationManagers";
import SettingsStore from "../../../settings/SettingsStore";
import classNames from 'classnames';
import {Resizable} from "re-resizable";
import {useLocalStorageState} from "../../../hooks/useLocalStorage";
import {useLocalStorageState} from "../../../hooks/useLocalStorageState";
// The maximum number of widgets that can be added in a room
const MAX_WIDGETS = 2;