diff --git a/src/components/Process/Chained.tsx b/src/components/Process/Chained.tsx
index 5432ebe..3157ae8 100644
--- a/src/components/Process/Chained.tsx
+++ b/src/components/Process/Chained.tsx
@@ -3,7 +3,7 @@ import { ConnectButton } from '@rainbow-me/rainbowkit'
import { ElectionQuestions, ElectionResults, SpreadsheetAccess } from '@vocdoni/chakra-components'
import { ElectionProvider, useElection } from '@vocdoni/react-providers'
import { InvalidElection, IVotePackage, PublishedElection, VocdoniSDKClient } from '@vocdoni/sdk'
-import { useEffect, useState } from 'react'
+import { PropsWithChildren, useEffect, useState } from 'react'
import { Trans } from 'react-i18next'
import { VoteButton } from '~components/Process/Aside'
import BlindCSPConnect from '~components/Process/BlindCSPConnect'
@@ -16,6 +16,14 @@ type ChainedProcessesInnerProps = {
connected: boolean
}
+const VoteButtonContainer = ({ children }: PropsWithChildren) => {
+ return (
+
+ {children}
+
+ )
+}
+
const ChainedProcessesInner = ({ connected }: ChainedProcessesInnerProps) => {
const { election, voted, setClient, clearClient } = useElection()
const { processes, client, current, setProcess, setCurrent } = useChainedProcesses()
@@ -74,22 +82,22 @@ const ChainedProcessesInner = ({ connected }: ChainedProcessesInnerProps) => {
return (
-
+
-
+
)
}
return (
-
+ <>
}
/>
-
+
-
-
+
+ >
)
}
@@ -146,13 +154,15 @@ const ChainedProcessesWrapper = () => {
const isBlindCsp = election.get('census.type') === 'csp' && election?.meta.csp?.service === 'vocdoni-blind-csp'
return (
- <>
+
- {!connected && election.get('census.type') === 'spreadsheet' && }
- {isBlindCsp && !connected && }
- >
+
+ {!connected && election.get('census.type') === 'spreadsheet' && }
+ {isBlindCsp && !connected && }
+
+
)
}