a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

prevent deleting rsvp when backspacing on update textarea, small copy changes, prdisable send on update if text area empty or no reciepients

celine ca94d7db 087e9ce2

+8 -2
+1 -1
components/Blocks/RSVPBlock/ContactDetailsForm.tsx
··· 325 325 onChange={(e) => props.onChange(e.target.value)} 326 326 /> 327 327 <div className="text-sm italic text-tertiary leading-tight"> 328 - Code was sent to <strong>{props.phoneNumber}</strong>! 328 + Code was sent to your <strong>WhatsApp</strong>! 329 329 </div> 330 330 </label> 331 331
+7 -1
components/Blocks/RSVPBlock/SendUpdate.tsx
··· 59 59 60 60 <textarea 61 61 id="rsvp-message-input" 62 + onKeyDown={(e) => { 63 + if (e.key === "Backspace" && !e.currentTarget.value) 64 + e.preventDefault(); 65 + }} 62 66 value={input} 63 67 onChange={(e) => { 64 68 setInput(e.target.value); ··· 83 87 {input.length}/300 {input.length > 300 && " (too long!)"} 84 88 </div> 85 89 <ButtonPrimary 86 - disabled={input.length > 300} 90 + disabled={ 91 + input.length > 300 || input.length === 0 || allRecipients === 0 92 + } 87 93 className="place-self-end " 88 94 onClick={async () => { 89 95 if (!permission_token || !publishLink) return;