Fix type errors in sync settings

This commit addresses several TypeScript errors in the sync settings component and related utility functions. It corrects type definitions for the sync result, ensures correct usage of the `setLastSyncTime` function, and fixes toast variants.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-16 10:13:54 +00:00
parent b0177ba5cd
commit f2a941c3da
3 changed files with 20 additions and 9 deletions

View File

@@ -13,11 +13,12 @@ export const getLastSyncTime = (): string | null => {
/**
* 마지막 동기화 시간 설정
* @param customValue 설정할 특정 값 (옵션)
*/
export const setLastSyncTime = (): void => {
export const setLastSyncTime = (customValue?: string): void => {
try {
const now = new Date().toISOString();
localStorage.setItem('lastSyncTime', now);
const value = customValue || new Date().toISOString();
localStorage.setItem('lastSyncTime', value);
} catch (error) {
console.error('마지막 동기화 시간 업데이트 중 오류:', error);
}