Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
01feae97
Unverified
Commit
01feae97
authored
May 24, 2020
by
Moody Salem
Committed by
GitHub
May 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a discord link (#833)
parent
2452d51e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
index.tsx
src/components/Menu/index.tsx
+15
-5
No files found.
src/components/Menu/index.tsx
View file @
01feae97
import
React
,
{
useRef
,
useEffect
}
from
'
react
'
import
{
Info
,
BookOpen
,
Code
,
PieChart
,
MessageCircle
}
from
'
react-feather
'
import
styled
from
'
styled-components
'
import
{
ReactComponent
as
MenuIcon
}
from
'
../../assets/images/menu.svg
'
import
{
Link
}
from
'
../../theme
'
...
...
@@ -70,6 +70,10 @@ const MenuItem = styled(Link)`
:hover {
color:
${({
theme
})
=>
theme
.
text1
}
;
cursor: pointer;
text-decoration: none;
}
> svg {
margin-right: 8px;
}
`
...
...
@@ -102,26 +106,32 @@ export default function Menu() {
return
(
<
StyledMenu
ref=
{
node
}
>
<
StyledMenuButton
onClick=
{
()
=>
toggle
()
}
>
<
StyledMenuButton
onClick=
{
toggle
}
>
<
StyledMenuIcon
/>
</
StyledMenuButton
>
{
open
?
(
{
open
&&
(
<
MenuFlyout
>
<
MenuItem
id=
"link"
href=
"https://uniswap.org/"
>
<
Info
size=
{
14
}
/>
About
</
MenuItem
>
<
MenuItem
id=
"link"
href=
"https://uniswap.org/docs/v2"
>
<
BookOpen
size=
{
14
}
/>
Docs
</
MenuItem
>
<
MenuItem
id=
"link"
href=
{
CODE_LINK
}
>
<
Code
size=
{
14
}
/>
Code
</
MenuItem
>
<
MenuItem
id=
"link"
href=
"https://discord.gg/vXCdddD"
>
<
MessageCircle
size=
{
14
}
/>
Discord
</
MenuItem
>
<
MenuItem
id=
"link"
href=
"https://uniswap.info/"
>
<
PieChart
size=
{
14
}
/>
Analytics
</
MenuItem
>
</
MenuFlyout
>
)
:
(
''
)
}
</
StyledMenu
>
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment