This repository has been archived by the owner on May 25, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added a dropdown menu under avatar (#1129)
closes #1031
- Loading branch information
Rizel Bobb-Semple
authored
Aug 20, 2021
1 parent
097dfaa
commit fe4df73
Showing
6 changed files
with
144 additions
and
10 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,37 @@ | ||
import React from "react"; | ||
import {SubtleLink} from "../styles/Typography"; | ||
import {DropdownMenuCard} from "../styles/Card"; | ||
import {getAppVersion} from "../lib/appVersion"; | ||
|
||
function DropdownMenu({forwardRef, user, _logOutRedirect}) { | ||
return ( | ||
<DropdownMenuCard ref={forwardRef}> | ||
<li> | ||
<SubtleLink | ||
tabIndex={0} | ||
className="menu-link" | ||
href={`https://github.com/${user.login}`} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
{user.login} | ||
</SubtleLink> | ||
</li> | ||
<li> | ||
<SubtleLink | ||
tabIndex={0} | ||
className="menu-link" | ||
href={`https://github.com/open-sauced/open-sauced/releases/tag/v${getAppVersion()}`} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
v{getAppVersion()} | ||
</SubtleLink> | ||
</li> | ||
<li> | ||
<SubtleLink tabIndex={0} className="menu-link" onClick={_logOutRedirect}>Logout</SubtleLink> | ||
</li> | ||
</DropdownMenuCard> | ||
); | ||
} | ||
export default DropdownMenu; |
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
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
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