mid 관련 수정
This commit is contained in:
@@ -8,7 +8,7 @@ type CommonErrorProps = FallbackProps & {
|
||||
height?: number;
|
||||
};
|
||||
export const APIError = ({ error, resetErrorBoundary }: CommonErrorProps) => {
|
||||
const { reload } = useNavigate();
|
||||
const { navigateBack } = useNavigate();
|
||||
const msg = useMemo(() => {
|
||||
let message: Partial<DialogProps> = {
|
||||
title: '일시적인 오류가 발생하였습니다.',
|
||||
@@ -21,7 +21,7 @@ export const APIError = ({ error, resetErrorBoundary }: CommonErrorProps) => {
|
||||
}, [error]);
|
||||
|
||||
const handleCancel = () => {
|
||||
reload();
|
||||
navigateBack();
|
||||
resetErrorBoundary();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user