Fix data initialization and toast issues
- Ensure toast notifications disappear after data initialization. - Resolve issues with expense items not displaying on the expense page. - Fix graph display issues on the analytics screen. - Prevent login screen from appearing after data initialization.
This commit is contained in:
@@ -8,7 +8,7 @@ import type {
|
||||
|
||||
// 토스트 알림 표시 제한 및 자동 사라짐 시간(ms) 설정
|
||||
const TOAST_LIMIT = 1
|
||||
const TOAST_REMOVE_DELAY = 3000 // 3초 후 자동으로 사라지도록 수정
|
||||
const TOAST_REMOVE_DELAY = 3000 // 3초 후 자동으로 사라지도록 설정
|
||||
|
||||
type ToasterToast = ToastProps & {
|
||||
id: string
|
||||
@@ -163,6 +163,11 @@ function toast({ ...props }: Toast) {
|
||||
},
|
||||
})
|
||||
|
||||
// 토스트 생성 후 자동으로 3초 후에 사라지도록 설정
|
||||
setTimeout(() => {
|
||||
dismiss()
|
||||
}, TOAST_REMOVE_DELAY)
|
||||
|
||||
return {
|
||||
id: id,
|
||||
dismiss,
|
||||
|
||||
Reference in New Issue
Block a user