Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
selankon committed Aug 9, 2024
1 parent 88f75bb commit 7efb98d
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 { IVoteInfoResponse, PublishedElection } from '@vocdoni/sdk'
import { PublishedElection, VoteInfoResponse } 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 } & IVoteInfoResponse) => {
}: { route: RoutePath.Envelope | RoutePath.Verify } & VoteInfoResponse) => {
const { t } = useTranslation()

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

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

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

0 comments on commit 7efb98d

Please sign in to comment.