Skip to content

Commit

Permalink
varcel error pblm
Browse files Browse the repository at this point in the history
  • Loading branch information
saagor16 committed Apr 17, 2024
1 parent 6f37b63 commit 8d92c58
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 10 deletions.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# React + Vite
# Real Estate Portal

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
**Live Site URL:** [Real Estate Portal]()

Currently, two official plugins are available:
## Features and Characteristics:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
- **User Authentication**: Secure login and registration system for users.
- **Property Listings**: Browse through a wide range of real estate properties.
- **Advanced Search**: Filter properties based on location, price, amenities, and more.
- **Favorites**: Save favorite properties for easy access later.
- **Responsive Design**: Ensures seamless experience across various devices.

**npm Package Name:** [package-name]()
10 changes: 5 additions & 5 deletions src/providers/AuthProvider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,22 @@ const AuthProvider = ({ children }) => {
};

const googleLogin = () => {
setIsLoading(false);

return signInWithPopup(auth, googleProvider);
};

const githubLogin = () => {
setIsLoading(false);

return signInWithPopup(auth, githubProvider);
};

const LogIn = (email, password) => {
setIsLoading(false);

return signInWithEmailAndPassword(auth, email, password);
};

const logOut = () => {
setIsLoading(false);

return signOut(auth);

};
Expand All @@ -60,7 +60,7 @@ const AuthProvider = ({ children }) => {

const authInfo = {
user,
isLoading, // Pass isLoading state to the context
isLoading,
registerUser,
updateProfileInfo,
googleLogin,
Expand Down
8 changes: 8 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"rewrites": [
{
"source": "/(.*)",
"destination": "/index.html"
}
]
}

0 comments on commit 8d92c58

Please sign in to comment.