mirror of
https://github.com/hex248/sprint.git
synced 2026-02-08 18:33:01 +00:00
toasts all over
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user