style: auto-format code

This commit is contained in:
Jean-Philippe Sirois
2019-09-14 19:54:25 -04:00
parent 79e19c974f
commit d933820454
7 changed files with 15 additions and 16 deletions
+8 -7
View File
@@ -13,15 +13,16 @@ export const SidebarContext = React.createContext<ISidebarContextInterface | nul
null
)
export function SidebarProvider({
children,
}: ISidebarProviderProps) {
export function SidebarProvider({ children }: ISidebarProviderProps) {
const [current, setCurrent] = useState(0)
const memoizedContextValue = useMemo(() => ({
current,
setCurrent,
}), [current, setCurrent])
const memoizedContextValue = useMemo(
() => ({
current,
setCurrent,
}),
[current, setCurrent]
)
return (
<SidebarContext.Provider value={memoizedContextValue}>