Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
00ac555ae4
commit
f17cd022f6
@@ -15,7 +15,12 @@ export function CaseStatusTab({ caseId }: { caseId: string }) {
|
||||
const [items, setItems] = useState<any[]>([]);
|
||||
const [showForm, setShowForm] = useState(false);
|
||||
const [submitting, setSubmitting] = useState(false);
|
||||
const [form, setForm] = useState({ title: "", body: "" });
|
||||
const nowLocal = () => {
|
||||
const d = new Date();
|
||||
d.setMinutes(d.getMinutes() - d.getTimezoneOffset());
|
||||
return d.toISOString().slice(0, 16);
|
||||
};
|
||||
const [form, setForm] = useState({ title: nowLocal(), body: "" });
|
||||
|
||||
const load = async () => {
|
||||
const { data } = await supabase
|
||||
|
||||
Reference in New Issue
Block a user