Skip to content
Merged
1 change: 1 addition & 0 deletions src/apis/slopeManage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ interface FetchSlopeParams {
pageSize: number;
searchQuery?: string;
city?: string;
grade?: string;
county?: string;
}

Expand Down
18 changes: 18 additions & 0 deletions src/apis/slopeMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,24 @@ export interface Slope {
historyNumber: string;
inspectionDate: string;
};
priority: {
usage: string; // 비탈면용도
slopeNature: string; // 자연/인공 구분
slopeType: string; // 비탈면유형
slopeStructure: string; // 비탈면구조
maxVerticalHeight: string; // 최고수직고 (단위: m)
longitudinalLength: string; // 종단길이 (단위: m)
averageSlope: string; // 평균경사 (단위: 도)
images: [
{
// 이미지
url: string; // url
createdAt: Date; // 이미지 생성날짜
}
];
Score: string; //점수
grade: string; // 등급
};
createdAt: Date;
_id: string;
}
Expand Down
8 changes: 7 additions & 1 deletion src/components/NotificationProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,14 @@ export const NotificationProvider = () => {
autoHideDuration={autoHideDuration}
onClose={handleClose}
anchorOrigin={{ vertical: 'top', horizontal: 'right' }}
sx={{}}
>
<Alert onClose={handleClose} severity={severity} variant="filled">
<Alert
onClose={handleClose}
severity={severity}
variant="filled"
sx={{ marginTop: '40px' }}
>
{message}
</Alert>
</Snackbar>
Expand Down
4 changes: 2 additions & 2 deletions src/hooks/notificationStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const useNotificationStore = create<NotificationState>((set) => ({
isOpen: false,
message: '',
severity: 'info',
autoHideDuration: 4000,
autoHideDuration: 3000,

showNotification: (message, options = {}) =>
set({
Expand All @@ -30,7 +30,7 @@ export const useNotificationStore = create<NotificationState>((set) => ({
autoHideDuration:
options.autoHideDuration !== undefined
? options.autoHideDuration
: 4000,
: 3000,
}),

hideNotification: () => set({ isOpen: false }),
Expand Down
Loading
Loading