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
Show 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
React
,
{
useRef
,
useEffect
}
from
'
react
'
import
{
Info
,
BookOpen
,
Code
,
PieChart
,
MessageCircle
}
from
'
react-feather
'
import
styled
from
'
styled-components
'
import
styled
from
'
styled-components
'
import
{
ReactComponent
as
MenuIcon
}
from
'
../../assets/images/menu.svg
'
import
{
ReactComponent
as
MenuIcon
}
from
'
../../assets/images/menu.svg
'
import
{
Link
}
from
'
../../theme
'
import
{
Link
}
from
'
../../theme
'
...
@@ -70,6 +70,10 @@ const MenuItem = styled(Link)`
...
@@ -70,6 +70,10 @@ const MenuItem = styled(Link)`
:hover {
:hover {
color:
${({
theme
})
=>
theme
.
text1
}
;
color:
${({
theme
})
=>
theme
.
text1
}
;
cursor: pointer;
cursor: pointer;
text-decoration: none;
}
> svg {
margin-right: 8px;
}
}
`
`
...
@@ -102,26 +106,32 @@ export default function Menu() {
...
@@ -102,26 +106,32 @@ export default function Menu() {
return
(
return
(
<
StyledMenu
ref=
{
node
}
>
<
StyledMenu
ref=
{
node
}
>
<
StyledMenuButton
onClick=
{
()
=>
toggle
()
}
>
<
StyledMenuButton
onClick=
{
toggle
}
>
<
StyledMenuIcon
/>
<
StyledMenuIcon
/>
</
StyledMenuButton
>
</
StyledMenuButton
>
{
open
?
(
{
open
&&
(
<
MenuFlyout
>
<
MenuFlyout
>
<
MenuItem
id=
"link"
href=
"https://uniswap.org/"
>
<
MenuItem
id=
"link"
href=
"https://uniswap.org/"
>
<
Info
size=
{
14
}
/>
About
About
</
MenuItem
>
</
MenuItem
>
<
MenuItem
id=
"link"
href=
"https://uniswap.org/docs/v2"
>
<
MenuItem
id=
"link"
href=
"https://uniswap.org/docs/v2"
>
<
BookOpen
size=
{
14
}
/>
Docs
Docs
</
MenuItem
>
</
MenuItem
>
<
MenuItem
id=
"link"
href=
{
CODE_LINK
}
>
<
MenuItem
id=
"link"
href=
{
CODE_LINK
}
>
<
Code
size=
{
14
}
/>
Code
Code
</
MenuItem
>
</
MenuItem
>
<
MenuItem
id=
"link"
href=
"https://discord.gg/vXCdddD"
>
<
MessageCircle
size=
{
14
}
/>
Discord
</
MenuItem
>
<
MenuItem
id=
"link"
href=
"https://uniswap.info/"
>
<
MenuItem
id=
"link"
href=
"https://uniswap.info/"
>
<
PieChart
size=
{
14
}
/>
Analytics
Analytics
</
MenuItem
>
</
MenuItem
>
</
MenuFlyout
>
</
MenuFlyout
>
)
:
(
''
)
}
)
}
</
StyledMenu
>
</
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