Finished login component
Did the following: - Extract front-end from component; - Added localStorage for remembering API details and access key; - Added routing to login component; Todo: - Remove getApi*FromDTO; - Create ProtectedRoute to prevent unauthorized entry to /dashboard;
This commit is contained in:
+5
-1
@@ -4,4 +4,8 @@ import './index.css';
|
||||
import { BrowserRouter as Router } from 'react-router-dom';
|
||||
import App from './Components/AppComponent/App';
|
||||
|
||||
ReactDOM.render(<Router><App /></Router>, document.getElementById('App'));
|
||||
ReactDOM.render(
|
||||
<Router >
|
||||
<App />
|
||||
</Router>,
|
||||
document.getElementById('App'));
|
||||
|
||||
Reference in New Issue
Block a user