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
74f50f1b
Unverified
Commit
74f50f1b
authored
Jan 13, 2021
by
vbstreetz
Committed by
GitHub
Jan 13, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(typo): toggle (#1260)
Closes #1229
parent
a70aa41d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
VotePage.tsx
src/pages/Vote/VotePage.tsx
+2
-2
index.tsx
src/pages/Vote/index.tsx
+4
-4
No files found.
src/pages/Vote/VotePage.tsx
View file @
74f50f1b
...
...
@@ -122,7 +122,7 @@ export default function VotePage({
// toggle for showing delegation modal
const
showDelegateModal
=
useModalOpen
(
ApplicationModal
.
DELEGATE
)
const
togg
el
DelegateModal
=
useToggleDelegateModal
()
const
togg
le
DelegateModal
=
useToggleDelegateModal
()
// get and format date from data
const
currentTimestamp
=
useCurrentBlockTimestamp
()
...
...
@@ -175,7 +175,7 @@ export default function VotePage({
return
(
<
PageWrapper
gap=
"lg"
justify=
"center"
>
<
VoteModal
isOpen=
{
showVoteModal
}
onDismiss=
{
toggleVoteModal
}
proposalId=
{
proposalData
?.
id
}
support=
{
support
}
/>
<
DelegateModal
isOpen=
{
showDelegateModal
}
onDismiss=
{
togg
el
DelegateModal
}
title=
"Unlock Votes"
/>
<
DelegateModal
isOpen=
{
showDelegateModal
}
onDismiss=
{
togg
le
DelegateModal
}
title=
"Unlock Votes"
/>
<
ProposalInfo
gap=
"lg"
justify=
"start"
>
<
RowBetween
style=
{
{
width
:
'
100%
'
}
}
>
<
ArrowWrapper
to=
"/vote"
>
...
...
src/pages/Vote/index.tsx
View file @
74f50f1b
...
...
@@ -107,7 +107,7 @@ export default function Vote() {
// toggle for showing delegation modal
const
showDelegateModal
=
useModalOpen
(
ApplicationModal
.
DELEGATE
)
const
togg
el
DelegateModal
=
useToggleDelegateModal
()
const
togg
le
DelegateModal
=
useToggleDelegateModal
()
// get data to list all proposals
const
allProposals
:
ProposalData
[]
=
useAllProposalData
()
...
...
@@ -126,7 +126,7 @@ export default function Vote() {
<
PageWrapper
gap=
"lg"
justify=
"center"
>
<
DelegateModal
isOpen=
{
showDelegateModal
}
onDismiss=
{
togg
el
DelegateModal
}
onDismiss=
{
togg
le
DelegateModal
}
title=
{
showUnlockVoting
?
'
Unlock Votes
'
:
'
Update Delegation
'
}
/>
<
TopSection
gap=
"md"
>
...
...
@@ -166,7 +166,7 @@ export default function Vote() {
style=
{
{
width
:
'
fit-content
'
}
}
padding=
"8px"
borderRadius=
"8px"
onClick=
{
togg
el
DelegateModal
}
onClick=
{
togg
le
DelegateModal
}
>
Unlock Voting
</
ButtonPrimary
>
...
...
@@ -200,7 +200,7 @@ export default function Vote() {
>
{
userDelegatee
===
account
?
'
Self
'
:
shortenAddress
(
userDelegatee
)
}
</
StyledExternalLink
>
<
TextButton
onClick=
{
togg
el
DelegateModal
}
style=
{
{
marginLeft
:
'
4px
'
}
}
>
<
TextButton
onClick=
{
togg
le
DelegateModal
}
style=
{
{
marginLeft
:
'
4px
'
}
}
>
(edit)
</
TextButton
>
</
AddressButton
>
...
...
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