refactor(data): add mock API adapters, id utility, and toast feedback
This commit is contained in:
@@ -4,6 +4,7 @@ import { AlertTriangle, CheckCircle2, MessageSquare, RefreshCw, Star, XCircle }
|
||||
import Link from "next/link"
|
||||
import { useEffect, useState } from "react"
|
||||
import { Button } from "@/components/ui/button"
|
||||
import { notifySuccess } from "@/lib/toast"
|
||||
import type { OrderStatus } from "@/lib/types"
|
||||
import { useChatStore } from "@/store/chat"
|
||||
import { useOrderStore } from "@/store/orders"
|
||||
@@ -16,8 +17,7 @@ interface OrderActionsProps {
|
||||
}
|
||||
|
||||
function showFeedback(message: string) {
|
||||
if (typeof window === "undefined") return
|
||||
window.alert(message)
|
||||
notifySuccess(message)
|
||||
}
|
||||
|
||||
export default function OrderActions({
|
||||
|
||||
Reference in New Issue
Block a user