toasts all over

This commit is contained in:
Oliver Bryan
2026-01-12 12:41:03 +00:00
parent 2b0bf94134
commit 0a931ca47c
12 changed files with 297 additions and 63 deletions

View File

@@ -1,5 +1,6 @@
import type { OrganisationRecord, OrganisationResponse } from "@issue/shared";
import { useState } from "react";
import { toast } from "sonner";
import { CreateOrganisation } from "@/components/create-organisation";
import { Button } from "@/components/ui/button";
import {
@@ -86,6 +87,11 @@ export function OrganisationSelect({
console.error(err);
}
}}
errorAction={async (errorMessage) => {
toast.error(`Error creating organisation: ${errorMessage}`, {
dismissible: false,
});
}}
/>
</SelectContent>
</Select>