generated from iai-group/template-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove changes to frontend related files
- Loading branch information
Showing
4 changed files
with
7 additions
and
109 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,13 @@ | ||
import React, { useContext } from "react"; | ||
import React from "react"; | ||
import "./App.css"; | ||
import APIHandler from "./APIHandler"; | ||
import LoginForm from "./components/LoginForm/LoginForm"; | ||
import Container from 'react-bootstrap/Container' | ||
import { UserContext } from "./contexts/UserContext"; | ||
|
||
function App() { | ||
const { user } = useContext(UserContext); | ||
|
||
const content = !user ? <LoginForm /> : <APIHandler />; | ||
|
||
return ( | ||
<Container className="p-3"> | ||
<Container className="p-3 mb-4 bg-light rounded-3"> | ||
<div className="App"> | ||
{content} | ||
</div> | ||
</Container> | ||
</Container> | ||
<div className="App"> | ||
<APIHandler /> | ||
</div> | ||
); | ||
} | ||
|
||
export default App; | ||
export default App; |
This file was deleted.
Oops, something went wrong.
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