Commit 74f50f1b authored by vbstreetz's avatar vbstreetz Committed by GitHub

fix(typo): toggle (#1260)

Closes #1229
parent a70aa41d
...@@ -122,7 +122,7 @@ export default function VotePage({ ...@@ -122,7 +122,7 @@ export default function VotePage({
// toggle for showing delegation modal // toggle for showing delegation modal
const showDelegateModal = useModalOpen(ApplicationModal.DELEGATE) const showDelegateModal = useModalOpen(ApplicationModal.DELEGATE)
const toggelDelegateModal = useToggleDelegateModal() const toggleDelegateModal = useToggleDelegateModal()
// get and format date from data // get and format date from data
const currentTimestamp = useCurrentBlockTimestamp() const currentTimestamp = useCurrentBlockTimestamp()
...@@ -175,7 +175,7 @@ export default function VotePage({ ...@@ -175,7 +175,7 @@ export default function VotePage({
return ( return (
<PageWrapper gap="lg" justify="center"> <PageWrapper gap="lg" justify="center">
<VoteModal isOpen={showVoteModal} onDismiss={toggleVoteModal} proposalId={proposalData?.id} support={support} /> <VoteModal isOpen={showVoteModal} onDismiss={toggleVoteModal} proposalId={proposalData?.id} support={support} />
<DelegateModal isOpen={showDelegateModal} onDismiss={toggelDelegateModal} title="Unlock Votes" /> <DelegateModal isOpen={showDelegateModal} onDismiss={toggleDelegateModal} title="Unlock Votes" />
<ProposalInfo gap="lg" justify="start"> <ProposalInfo gap="lg" justify="start">
<RowBetween style={{ width: '100%' }}> <RowBetween style={{ width: '100%' }}>
<ArrowWrapper to="/vote"> <ArrowWrapper to="/vote">
......
...@@ -107,7 +107,7 @@ export default function Vote() { ...@@ -107,7 +107,7 @@ export default function Vote() {
// toggle for showing delegation modal // toggle for showing delegation modal
const showDelegateModal = useModalOpen(ApplicationModal.DELEGATE) const showDelegateModal = useModalOpen(ApplicationModal.DELEGATE)
const toggelDelegateModal = useToggleDelegateModal() const toggleDelegateModal = useToggleDelegateModal()
// get data to list all proposals // get data to list all proposals
const allProposals: ProposalData[] = useAllProposalData() const allProposals: ProposalData[] = useAllProposalData()
...@@ -126,7 +126,7 @@ export default function Vote() { ...@@ -126,7 +126,7 @@ export default function Vote() {
<PageWrapper gap="lg" justify="center"> <PageWrapper gap="lg" justify="center">
<DelegateModal <DelegateModal
isOpen={showDelegateModal} isOpen={showDelegateModal}
onDismiss={toggelDelegateModal} onDismiss={toggleDelegateModal}
title={showUnlockVoting ? 'Unlock Votes' : 'Update Delegation'} title={showUnlockVoting ? 'Unlock Votes' : 'Update Delegation'}
/> />
<TopSection gap="md"> <TopSection gap="md">
...@@ -166,7 +166,7 @@ export default function Vote() { ...@@ -166,7 +166,7 @@ export default function Vote() {
style={{ width: 'fit-content' }} style={{ width: 'fit-content' }}
padding="8px" padding="8px"
borderRadius="8px" borderRadius="8px"
onClick={toggelDelegateModal} onClick={toggleDelegateModal}
> >
Unlock Voting Unlock Voting
</ButtonPrimary> </ButtonPrimary>
...@@ -200,7 +200,7 @@ export default function Vote() { ...@@ -200,7 +200,7 @@ export default function Vote() {
> >
{userDelegatee === account ? 'Self' : shortenAddress(userDelegatee)} {userDelegatee === account ? 'Self' : shortenAddress(userDelegatee)}
</StyledExternalLink> </StyledExternalLink>
<TextButton onClick={toggelDelegateModal} style={{ marginLeft: '4px' }}> <TextButton onClick={toggleDelegateModal} style={{ marginLeft: '4px' }}>
(edit) (edit)
</TextButton> </TextButton>
</AddressButton> </AddressButton>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment