mirror of
https://github.com/Nezumi-2711/react-training.git
synced 2026-09-22 13:38:51 +00:00
Format code style
This commit is contained in:
@@ -18,7 +18,7 @@ import {
|
||||
initialState,
|
||||
reducer,
|
||||
} from '@context/UserRoomAvailableContext';
|
||||
import { useEffect, useReducer } from 'react';
|
||||
import { useEffect, useMemo, useReducer } from 'react';
|
||||
|
||||
// Services
|
||||
import { getUserNotBooked } from '@service/userServices';
|
||||
@@ -57,12 +57,14 @@ function App() {
|
||||
load();
|
||||
}, []);
|
||||
|
||||
const store = useMemo(() => {
|
||||
return { roomsAvailable, usersAvailable, dispatch };
|
||||
}, [roomsAvailable, usersAvailable]);
|
||||
|
||||
return (
|
||||
<QueryClientProvider client={queryClient}>
|
||||
<StyleSheetManager shouldForwardProp={shouldForwardProp}>
|
||||
<UserRoomAvailableContext.Provider
|
||||
value={{ roomsAvailable, usersAvailable, dispatch }}
|
||||
>
|
||||
<UserRoomAvailableContext.Provider value={store}>
|
||||
<BrowserRouter>
|
||||
<Routes>
|
||||
<Route element={<AppLayout />}>
|
||||
|
||||
Reference in New Issue
Block a user