feat: add distance value object and ci workflows
This commit is contained in:
@@ -1,15 +1,8 @@
|
||||
import {
|
||||
Toast,
|
||||
ToastClose,
|
||||
ToastDescription,
|
||||
ToastProvider,
|
||||
ToastTitle,
|
||||
ToastViewport,
|
||||
} from '@/components/ui/toast'
|
||||
import { useToast } from '@/components/ui/use-toast'
|
||||
import { Toast, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport } from "@/components/ui/toast";
|
||||
import { useToast } from "@/components/ui/use-toast";
|
||||
|
||||
export function Toaster() {
|
||||
const { toasts, dismiss } = useToast()
|
||||
const { toasts, dismiss } = useToast();
|
||||
|
||||
return (
|
||||
<ToastProvider>
|
||||
@@ -17,9 +10,9 @@ export function Toaster() {
|
||||
<Toast
|
||||
key={id}
|
||||
{...props}
|
||||
onOpenChange={(open) => {
|
||||
onOpenChange={open => {
|
||||
if (!open) {
|
||||
dismiss(id)
|
||||
dismiss(id);
|
||||
}
|
||||
}}
|
||||
>
|
||||
@@ -33,5 +26,5 @@ export function Toaster() {
|
||||
))}
|
||||
<ToastViewport />
|
||||
</ToastProvider>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user