Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1cd77f0
commit ea3cec6
Showing
12 changed files
with
21,495 additions
and
14,327 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from "react"; | ||
import AppRouter from "./Router"; | ||
function App() { | ||
return <AppRouter />; | ||
} | ||
|
||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React, { useState } from "react"; | ||
import { HashRouter as Router, Route, Switch } from "react-router-dom"; | ||
import Home from "../routes/Home"; | ||
import Auth from "../routes/Auth"; | ||
|
||
const AppRouter = () => { | ||
const [isLoggedIn, setIsLoggedIn] = useState(false); | ||
return ( | ||
<Router> | ||
<Switch> | ||
{isLoggedIn ? ( | ||
<Route exact path="/"> | ||
<Home /> | ||
</Route> | ||
) : ( | ||
<Route exact path="/"> | ||
<Auth /> | ||
</Route> | ||
)} | ||
</Switch> | ||
</Router> | ||
); | ||
}; | ||
|
||
export default AppRouter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import firebase from "firebase/app"; | ||
|
||
const firebaseConfig = { | ||
apiKey: process.env.REACT_APP_API_KEY, | ||
authDomain: process.env.REACT_APP_AUTH_DOMAIN, | ||
projectId: process.env.REACT_APP_PROJECT_ID, | ||
storageBucket: process.env.REACT_APP_STORAGE_BUCKET, | ||
messagingSenderId: process.env.REACT_APP_MESSAGING_SENDER_ID, | ||
appId: process.env.REACT_APP_APP_ID, | ||
}; | ||
|
||
export default firebase.initializeApp(firebaseConfig); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
import React from "react"; | ||
import ReactDOM from "react-dom/client"; | ||
import App from "./App"; | ||
import ReactDOM from "react-dom"; | ||
import App from "./components/App"; | ||
import firebase from "./firebase"; | ||
console.log(firebase); | ||
|
||
const root = ReactDOM.createRoot(document.getElementById("root")); | ||
root.render( | ||
ReactDOM.render( | ||
<React.StrictMode> | ||
<App /> | ||
</React.StrictMode> | ||
</React.StrictMode>, | ||
document.getElementById("root") | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from "react"; | ||
|
||
const Auth = () => { | ||
return <div>Auth</div>; | ||
}; | ||
|
||
export default Auth; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from "react"; | ||
|
||
const EditProfile = () => { | ||
return <div>EditProfile</div>; | ||
}; | ||
|
||
export default EditProfile; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from "react"; | ||
|
||
const Home = () => { | ||
return <div>Home</div>; | ||
}; | ||
|
||
export default Home; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from "react"; | ||
|
||
const Profile = () => { | ||
return <div>Profile</div>; | ||
}; | ||
|
||
export default Profile; |