Skip to content

Commit

Permalink
Upgrade envelope to use list, as in latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
elboletaire committed Aug 9, 2024
1 parent 7efb98d commit 750e189
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
13 changes: 6 additions & 7 deletions src/components/Envelope/Detail.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import voteImage from '/images/vocdoni-vote.png'
import { Flex, Image, Link, Tab, TabList, TabPanel, TabPanels, Text } from '@chakra-ui/react'
import { Envelope, VotePackageType } from '@vocdoni/chakra-components'
import { ElectionProvider, useElection } from '@vocdoni/react-providers'
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'
import { CopyButton, ReducedTextAndCopy } from '~components/Layout/CopyButton'
import { RawContentBox } from '~components/Layout/ShowRawButton'
import { RoutePath } from '~constants'
import { RouteParamsTabs } from '~components/Layout/RouteParamsTabs'
import { DetailsGrid, GridItemProps } from '~components/Layout/DetailsGrid'
import { RouteParamsTabs } from '~components/Layout/RouteParamsTabs'
import { RawContentBox } from '~components/Layout/ShowRawButton'
import { processIdGridItem } from '~components/Transactions/TxDetails/SpecificTxDetails'
import { Envelope, VotePackageType } from '@vocdoni/chakra-components'
import { ElectionProvider, useElection } from '@vocdoni/react-providers'
import { RoutePath } from '~constants'
import voteImage from '/images/vocdoni-vote.png'

/**
* Show envelope content
Expand Down Expand Up @@ -78,7 +78,6 @@ const EnvelopeDetail = ({
}

export const VotePackage = ({ votePackage }: { votePackage: VotePackageType }) => {
const { t } = useTranslation()
const { election } = useElection()
if (!election || !(election instanceof PublishedElection)) return null

Expand Down
6 changes: 2 additions & 4 deletions src/theme/components/Envelope.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ const Envelope = defineMultiStyleConfig({
fontSize: 'lg',
},
choiceTitle: {
_before: {
content: '"-"',
pr: 1,
},
listStyle: 'disc',
ml: 4,
},
}),
})
Expand Down

0 comments on commit 750e189

Please sign in to comment.