fix: next signer and spinner anim duration
This commit is contained in:
parent
3743a30ef6
commit
d8adb2c744
@ -1,5 +1,5 @@
|
|||||||
.spin {
|
.spin {
|
||||||
animation: spin 1s linear infinite;
|
animation: spin 5s linear infinite;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes spin {
|
@keyframes spin {
|
||||||
|
@ -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))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user