@@ -11,12 +11,12 @@ import classnames from "classnames"
1111import useEventCallback from "use-event-callback"
1212import Typography from "@material-ui/core/Typography"
1313import { useIconDictionary } from "../icon-dictionary.js"
14- import ResizePanel from "react-resize-panel"
14+ import ResizePanel from "@seveibar/ react-resize-panel"
1515
1616const useStyles = makeStyles ( {
1717 container : {
1818 borderBottom : `2px solid ${ grey [ 400 ] } ` ,
19- "&:first-child" : { borderTop : `1px solid ${ grey [ 400 ] } ` } ,
19+ "&:first-child" : { borderTop : `1px solid ${ grey [ 400 ] } ` }
2020 } ,
2121 header : {
2222 display : "flex" ,
@@ -32,9 +32,9 @@ const useStyles = makeStyles({
3232 justifyContent : "center" ,
3333 "& .MuiSvgIcon-root" : {
3434 width : 16 ,
35- height : 16 ,
36- } ,
37- } ,
35+ height : 16
36+ }
37+ }
3838 } ,
3939 title : {
4040 fontSize : 11 ,
@@ -44,8 +44,8 @@ const useStyles = makeStyles({
4444 color : grey [ 800 ] ,
4545 "& span" : {
4646 color : grey [ 600 ] ,
47- fontSize : 11 ,
48- } ,
47+ fontSize : 11
48+ }
4949 } ,
5050 expandButton : {
5151 padding : 0 ,
@@ -56,21 +56,21 @@ const useStyles = makeStyles({
5656 height : 20 ,
5757 transition : "500ms transform" ,
5858 "&.expanded" : {
59- transform : "rotate(180deg)" ,
60- } ,
61- } ,
59+ transform : "rotate(180deg)"
60+ }
61+ }
6262 } ,
6363 expandedContent : {
6464 maxHeight : 300 ,
6565 overflowY : "auto" ,
6666 "&.noScroll" : {
6767 overflowY : "visible" ,
68- overflow : "visible" ,
69- } ,
70- } ,
68+ overflow : "visible"
69+ }
70+ }
7171} )
7272
73- const getExpandedFromLocalStorage = ( title ) => {
73+ const getExpandedFromLocalStorage = title => {
7474 try {
7575 return JSON . parse (
7676 window . localStorage [ `__REACT_WORKSPACE_SIDEBAR_EXPANDED_${ title } ` ]
@@ -91,7 +91,7 @@ export const SidebarBox = ({
9191 subTitle,
9292 children,
9393 noScroll = false ,
94- expandedByDefault,
94+ expandedByDefault
9595} ) => {
9696 const classes = useStyles ( )
9797 const content = (
@@ -108,7 +108,7 @@ export const SidebarBox = ({
108108 : expandedByDefault
109109 )
110110 const changeExpanded = useCallback (
111- ( expanded ) => {
111+ expanded => {
112112 changeExpandedState ( expanded )
113113 setExpandedInLocalStorage ( title , expanded )
114114 } ,
0 commit comments