Fix toast and data display issues

- Fixes an issue where toast notifications would not automatically dismiss.
- Addresses a problem where expense data was not displaying correctly on the transaction and analytics screens.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-16 08:34:58 +00:00
parent 1281156f05
commit fe669b0cfd
6 changed files with 68 additions and 19 deletions

View File

@@ -1,3 +1,4 @@
import * as React from "react"
import type {
@@ -5,8 +6,9 @@ import type {
ToastProps,
} from "@/components/ui/toast"
// 토스트 알림 표시 제한 및 자동 사라짐 시간(ms) 설정
const TOAST_LIMIT = 1
const TOAST_REMOVE_DELAY = 1000000
const TOAST_REMOVE_DELAY = 3000 // 3초 후 자동으로 사라지도록 수정
type ToasterToast = ToastProps & {
id: string