Fix toast text alignment
The text in the toast notification was left-aligned instead of centered. This commit fixes the alignment issue.
This commit is contained in:
@@ -6,6 +6,7 @@ import { useAuth } from '@/contexts/auth/AuthProvider';
|
||||
import { useDataReset } from '@/hooks/useDataReset';
|
||||
import DataResetDialog from './DataResetDialog';
|
||||
import { isSyncEnabled } from '@/utils/sync/syncSettings';
|
||||
import { toast } from '@/hooks/useToast.wrapper';
|
||||
|
||||
const DataResetSection = () => {
|
||||
const [isResetDialogOpen, setIsResetDialogOpen] = useState(false);
|
||||
@@ -17,6 +18,12 @@ const DataResetSection = () => {
|
||||
await resetAllData();
|
||||
setIsResetDialogOpen(false);
|
||||
|
||||
// 알림 표시
|
||||
toast({
|
||||
title: "데이터 초기화 완료",
|
||||
description: "모든 데이터가 초기화되었습니다.",
|
||||
});
|
||||
|
||||
// 초기화 후 페이지 새로고침
|
||||
setTimeout(() => {
|
||||
window.location.reload();
|
||||
|
||||
Reference in New Issue
Block a user