Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Automatically-Generated-Cyber-Security-Compliance-Engine
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jda1g15
Automatically-Generated-Cyber-Security-Compliance-Engine
Commits
83b827d6
Commit
83b827d6
authored
5 years ago
by
James D'Alton
Browse files
Options
Downloads
Patches
Plain Diff
fixed double return in App.js
parent
1fbacca0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compforge/src/App.js
+17
-33
17 additions, 33 deletions
compforge/src/App.js
with
17 additions
and
33 deletions
compforge/src/App.js
+
17
−
33
View file @
83b827d6
...
...
@@ -12,39 +12,23 @@ import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
function
App
()
{
var
user
=
firebase
.
auth
().
currentUser
;
console
.
log
(
user
);
firebase
.
auth
().
onAuthStateChanged
(
function
(
user
)
{
if
(
user
)
{
return
(
<
div
className
=
"
App
"
>
<
header
className
=
"
App-header
"
>
<
Router
>
<
Switch
>
<
Route
exact
path
=
'
/
'
component
=
{
Dashboard
}
/
>
<
Route
exact
path
=
'
/CreateForm
'
component
=
{
CreateForm
}
/
>
<
Route
exact
path
=
'
/AddPartner
'
component
=
{
AddPartner
}
/
>
<
Route
path
=
'
/
'
component
=
{
PageNotFound
}
/
>
<
/Switch
>
<
/Router
>
<
/header
>
<
/div
>
);
}
else
{
return
(
<
div
className
=
"
App
"
>
<
header
className
=
"
App-header
"
>
<
Router
>
<
Switch
>
<
Route
exact
path
=
"
/signin
"
component
=
{
SignIn
}
/
>
<
Route
exact
path
=
'
/signup
'
component
=
{
SignUp
}
/
>
<
/Switch
>
<
/Router
>
<
/header
>
<
/div
>
);
}
});
return
(
<
div
className
=
"
App
"
>
<
header
className
=
"
App-header
"
>
<
Router
>
<
Switch
>
<
Route
exact
path
=
'
/
'
component
=
{
Dashboard
}
/
>
<
Route
exact
path
=
'
/CreateForm
'
component
=
{
CreateForm
}
/
>
<
Route
exact
path
=
'
/AddPartner
'
component
=
{
AddPartner
}
/
>
<
Route
path
=
'
/
'
component
=
{
PageNotFound
}
/
>
<
Route
exact
path
=
"
/signin
"
component
=
{
SignIn
}
/
>
<
Route
exact
path
=
'
/signup
'
component
=
{
SignUp
}
/
>
<
/Switch
>
<
/Router
>
<
/header
>
<
/div
>
);
}
export
default
App
;
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment