More styling
This commit is contained in:
parent
5851d738f8
commit
43c0ed193e
13 changed files with 423 additions and 201 deletions
|
|
@ -38,3 +38,18 @@ export function RightNav({ children, className, ...rest }) {
|
|||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export function UserNav({ signedIn, userName, onLogout }) {
|
||||
if (!signedIn) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<RightNav>
|
||||
<span className={styles.userName}>{userName}</span>
|
||||
<button className={styles.signOutButton} type="button" onClick={onLogout}>
|
||||
Sign Out
|
||||
</button>
|
||||
</RightNav>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue