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({
// toggle for showing delegation modal
const showDelegateModal = useModalOpen(ApplicationModal.DELEGATE)
const toggelDelegateModal = useToggleDelegateModal()
const toggleDelegateModal = 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={toggelDelegateModal} title="Unlock Votes" />
<DelegateModal isOpen={showDelegateModal} onDismiss={toggleDelegateModal} title="Unlock Votes" />
<ProposalInfo gap="lg" justify="start">
<RowBetween style={{ width: '100%' }}>
<ArrowWrapper to="/vote">
......
......@@ -107,7 +107,7 @@ export default function Vote() {
// toggle for showing delegation modal
const showDelegateModal = useModalOpen(ApplicationModal.DELEGATE)
const toggelDelegateModal = useToggleDelegateModal()
const toggleDelegateModal = 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={toggelDelegateModal}
onDismiss={toggleDelegateModal}
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={toggelDelegateModal}
onClick={toggleDelegateModal}
>
Unlock Voting
</ButtonPrimary>
......@@ -200,7 +200,7 @@ export default function Vote() {
>
{userDelegatee === account ? 'Self' : shortenAddress(userDelegatee)}
</StyledExternalLink>
<TextButton onClick={toggelDelegateModal} style={{ marginLeft: '4px' }}>
<TextButton onClick={toggleDelegateModal} style={{ marginLeft: '4px' }}>
(edit)
</TextButton>
</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