Skip to content

Commit 683eaaf

Browse files
committed
Require startsAt in admin notification edit form
1 parent 4e35673 commit 683eaaf

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

apps/webapp/app/routes/admin.notifications.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,14 +992,17 @@ function NotificationForm({
992992

993993
<div className="grid grid-cols-2 gap-3">
994994
<div>
995-
<Label variant="small">Starts at (UTC)</Label>
995+
<Label variant="small">
996+
Starts at (UTC) {isEdit && <span className="text-red-400">*</span>}
997+
</Label>
996998
<input
997999
name="startsAt"
9981000
type="datetime-local"
9991001
defaultValue={
10001002
n?.startsAt ? toDatetimeLocalUTC(new Date(n.startsAt)) : defaultStartsAt()
10011003
}
10021004
className="mt-1 block h-8 w-full rounded border border-charcoal-800 bg-charcoal-750 px-2 text-sm text-text-bright transition hover:border-charcoal-600 hover:bg-charcoal-650"
1005+
required={isEdit}
10031006
/>
10041007
</div>
10051008
<div>

0 commit comments

Comments
 (0)