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
f9c6849
commit f459a0e
Showing
3 changed files
with
38 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from "react"; | ||
import {Link} from "react-router-dom"; | ||
|
||
const Navigation = () => <nav> | ||
<ul> | ||
<li> | ||
<Link to="/">홈으로</Link> | ||
</li> | ||
<li> | ||
<Link to="/profile">프로필</Link> | ||
</li> | ||
</ul> | ||
</nav> | ||
|
||
export default Navigation; |
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 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,6 +1,16 @@ | ||
import React from 'react'; | ||
import EditProfile from "routes/EditProfile"; | ||
import {authService} from "../myFirebase"; | ||
|
||
const Profile = () => { | ||
const onLogout = () => authService.signOut(); | ||
|
||
return ( | ||
<> | ||
<button onClick={onLogout}>로그아웃</button> | ||
<span>Profile</span> | ||
</> | ||
); | ||
}; | ||
|
||
const Profile = () => <span>Profile</span>; | ||
|
||
export default Profile; |