feat(auth): implement email/password login form
This commit is contained in:
@@ -1,11 +1,28 @@
|
||||
import React from 'react';
|
||||
import { Provider } from 'react-redux';
|
||||
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
||||
import AppRoutes from './routes';
|
||||
import { store } from './store/store';
|
||||
import { initializeAuthPersistence } from './services/authService';
|
||||
|
||||
// Initialize the QueryClient
|
||||
const queryClient = new QueryClient();
|
||||
|
||||
function App() {
|
||||
// Initialize Firebase Auth persistence
|
||||
initializeAuthPersistence();
|
||||
|
||||
/**
|
||||
* Root Application Component.
|
||||
* Wraps the app with Redux Provider and React Query Provider.
|
||||
*/
|
||||
const App: React.FC = () => {
|
||||
return (
|
||||
<div className="bg-black">
|
||||
<h1 className="text-white">Hello World</h1>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
<Provider store={store}>
|
||||
<QueryClientProvider client={queryClient}>
|
||||
<AppRoutes />
|
||||
</QueryClientProvider>
|
||||
</Provider>
|
||||
);
|
||||
};
|
||||
|
||||
export default App
|
||||
export default App;
|
||||
Reference in New Issue
Block a user