Skip to content

Commit

Permalink
Fix interface name
Browse files Browse the repository at this point in the history
  • Loading branch information
selankon committed Aug 9, 2024
1 parent 3357319 commit 63b7750
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Envelope/Detail.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import voteImage from '/images/vocdoni-vote.png'
import {Flex, Image, Link, Tab, TabList, TabPanel, TabPanels, Text} from '@chakra-ui/react'
import {PublishedElection, VoteInfoResponse} from '@vocdoni/sdk'
import {IVoteInfoResponse, PublishedElection} from '@vocdoni/sdk'
import {formatDistance} from 'date-fns'
import {Trans, useTranslation} from 'react-i18next'
import {generatePath, Link as RouterLink} from 'react-router-dom'
Expand All @@ -22,7 +22,7 @@ import {ElectionProvider, useElection} from '@vocdoni/react-providers'
const EnvelopeDetail = ({
route,
...envelope
}: { route: RoutePath.Envelope | RoutePath.Verify } & VoteInfoResponse) => {
}: { route: RoutePath.Envelope | RoutePath.Verify } & IVoteInfoResponse) => {
const { t } = useTranslation()

return (
Expand Down Expand Up @@ -98,7 +98,7 @@ export const VotePackage = ({ votePackage }: { votePackage: VotePackageType }) =
)
}

const EnvelopeDetailsGrid = (envelope: VoteInfoResponse) => {
const EnvelopeDetailsGrid = (envelope: IVoteInfoResponse) => {
const { t } = useTranslation()

const emitted = formatDistance(new Date(envelope.date), new Date(), { addSuffix: true })
Expand Down

0 comments on commit 63b7750

Please sign in to comment.