Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
Digital course file
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
SE-PROJECT-TEAM
Digital course file
Commits
823884f7
Commit
823884f7
authored
4 years ago
by
Balaji D
Browse files
Options
Downloads
Patches
Plain Diff
logoutfix
parent
ce7df0e0
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!34
logoutfix
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
digital-course-file/package-lock.json
+24
-20891
24 additions, 20891 deletions
digital-course-file/package-lock.json
digital-course-file/src/Routes.js
+6
-8
6 additions, 8 deletions
digital-course-file/src/Routes.js
digital-course-file/src/user/Hero.js
+1
-1
1 addition, 1 deletion
digital-course-file/src/user/Hero.js
with
31 additions
and
20900 deletions
digital-course-file/package-lock.json
+
24
−
20891
View file @
823884f7
This diff is collapsed.
Click to expand it.
digital-course-file/src/Routes.js
+
6
−
8
View file @
823884f7
...
...
@@ -23,14 +23,13 @@ const Routes = () => {
}
})
}
useEffect
(()
=>
{
authListener
()
},
[])
const
handleLogout
=
()
=>
{
fire
.
auth
().
signOut
()
//this.props.history.push('/')
}
//
const handleLogout = () => {
//
fire.auth().signOut()
//
//this.props.history.push('/')
//
}
return
(
<
BrowserRouter
>
<
section
className
=
'
hero
'
>
...
...
@@ -38,10 +37,9 @@ const Routes = () => {
<
Navbar
.
Brand
as
=
{
Link
}
to
=
'
/
'
>
<
h2
>
Course
File
System
<
/h2
>
<
/Navbar.Brand
>
{
user
&&
(
<
Link
to
=
"
/
"
>
<
button
className
=
'
logoutbutton
'
onClick
=
{()
=>
handleLogout
}
>
<
Link
to
=
"
/
signin
"
>
<
button
className
=
'
logoutbutton
'
onClick
=
{()
=>
fire
.
auth
().
signOut
()
}
>
Logout
<
/button></
Link
>
)}
...
...
This diff is collapsed.
Click to expand it.
digital-course-file/src/user/Hero.js
+
1
−
1
View file @
823884f7
...
...
@@ -36,7 +36,7 @@ const Hero = ({ handleLogout }) => {
<
div
className
=
'
d-flex align-items-center
'
>
<
FolderNav
currentFolder
=
{
folder
}
/
>
<
AddFolder
currentFolder
=
{
folder
}
/
>
{
childFolders
.
length
==
0
&&
folder
.
id
=
=
null
&&
(
{
childFolders
.
length
==
0
&&
folder
.
id
!
=
null
&&
(
<
Deffolders
currentFolder
=
{
folder
}
/
>
)}
<
/div
>
...
...
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