Skip to content

Commit

Permalink
Implement simple vote package component
Browse files Browse the repository at this point in the history
  • Loading branch information
selankon committed Aug 7, 2024
1 parent da525c8 commit 941faca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/Envelope/Detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { generatePath, Link as RouterLink } from 'react-router-dom'
import { CopyButton } from '~components/Layout/CopyButton'
import ShowRawButton from '~components/Layout/ShowRawButton'
import { RoutePath } from '~constants'
import { ElectionProvider } from '@vocdoni/react-providers'
import { VoteSelectedChoices } from '~components/Envelope/VoteSelectedChoices'

Check failure on line 11 in src/components/Envelope/Detail.tsx

View workflow job for this annotation

GitHub Actions / build-stg-explorer

Cannot find module '~components/Envelope/VoteSelectedChoices' or its corresponding type declarations.

Check failure on line 11 in src/components/Envelope/Detail.tsx

View workflow job for this annotation

GitHub Actions / build-dev-explorer

Cannot find module '~components/Envelope/VoteSelectedChoices' or its corresponding type declarations.

const EnvelopeDetail = (envelope: IVoteInfoResponse) => {
const { t } = useTranslation()
Expand Down Expand Up @@ -87,6 +89,10 @@ const EnvelopeDetail = (envelope: IVoteInfoResponse) => {
/>
</Text>
</Flex>

<ElectionProvider id={envelope.electionID}>
<VoteSelectedChoices {...envelope.package} />
</ElectionProvider>
<ShowRawButton obj={envelope} />
</Flex>
)
Expand Down

0 comments on commit 941faca

Please sign in to comment.