Signing Page - New Design #152

Merged
eugene merged 29 commits from sigit-info-signing-page into staging 2024-08-20 11:29:11 +00:00
2 changed files with 6 additions and 7 deletions
Showing only changes of commit d8adb2c744 - Show all commits

View File

@ -1,5 +1,5 @@
.spin { .spin {
animation: spin 1s linear infinite; animation: spin 5s linear infinite;
} }
@keyframes spin { @keyframes spin {

View File

@ -199,17 +199,16 @@ export const useSigitMeta = (meta: Meta): FlatMeta => {
} }
}) })
signers
.filter((s) => !parsedSignatureEventsMap.has(s))
.forEach((s) => signerStatusMap.set(s, SignStatus.Pending))
// Get the first signer that hasn't signed
const nextSigner = signers.find((s) => !parsedSignatureEventsMap.has(s)) const nextSigner = signers.find((s) => !parsedSignatureEventsMap.has(s))
if (nextSigner) { if (nextSigner) {
signerStatusMap.set(nextSigner, SignStatus.Awaiting) signerStatusMap.set(nextSigner, SignStatus.Awaiting)
} }
signers
.filter((s) => !(s in meta.docSignatures))
.forEach((s) =>
signerStatusMap.set(s as `npub1${string}`, SignStatus.Pending)
)
setSignersStatus(Object.fromEntries(signerStatusMap)) setSignersStatus(Object.fromEntries(signerStatusMap))
setParsedSignatureEvents(Object.fromEntries(parsedSignatureEventsMap)) setParsedSignatureEvents(Object.fromEntries(parsedSignatureEventsMap))