mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-06 16:06:12 +02:00
style: auto-format code
This commit is contained in:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user