|
|
|
@ -34,11 +34,6 @@ const CreateElectionForm = () => {
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
if (wait) {
|
|
|
|
|
return <PatternedBackground>
|
|
|
|
|
<WaitingBallot election={payload} />
|
|
|
|
|
</PatternedBackground>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// at which creation step are we?
|
|
|
|
|
const [stepId, setStepId] = useState(0);
|
|
|
|
@ -62,6 +57,12 @@ const CreateElectionForm = () => {
|
|
|
|
|
throw Error(`Unknown step ${step}`);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (wait) {
|
|
|
|
|
return <PatternedBackground>
|
|
|
|
|
<WaitingBallot election={payload} />
|
|
|
|
|
</PatternedBackground>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<ElectionProvider>
|
|
|
|
|
<ProgressSteps
|
|
|
|
|