Store collapsed status of sidebar sections

Summary:
See previous diff, let's store the collapsed state of sidebar sections in local storage.

Introduced a reusable hook to take care of that.

Changelog: Device plugins are now expanded by default, and the expand / collapse state will now be remembered across restarts

Reviewed By: passy

Differential Revision: D21903394

fbshipit-source-id: a3c0231acc0aa0877522ec328eedd09cb11aedb1
This commit is contained in:
Michel Weststrate
2020-06-05 08:28:41 -07:00
committed by Facebook GitHub Bot
parent 163cbe83e2
commit 95d319a700
4 changed files with 192 additions and 5 deletions

View File

@@ -188,3 +188,4 @@ export {getFlipperMediaCDN} from './fb-stubs/user';
export {Rect} from './utils/geometry';
export {Logger} from './fb-interfaces/Logger';
export {callVSCode, getVSCodeUrl} from './utils/vscodeUtils';
export {useLocalStorage} from './utils/useLocalStorage';