+
댓글
- {commentDataLength}
+ {commentDataLength}
{commentDataLength == 0 && (
@@ -104,9 +108,15 @@ export default function ReviewComments() {
{modalChildren === 'EditDelete' && }
- {modalChildren === 'MyAlert' && (
+ {modalChildren === 'MyAlert' && alertType === 'DeleteReview' && (
)}
+ {modalChildren === 'MyAlert' && alertType === 'LoginComment' && (
+
+ )}
>
);
diff --git a/src/components/common/BackBox/BackBox.tsx b/src/components/common/BackBox/BackBox.tsx
index d440deb9..4f724838 100644
--- a/src/components/common/BackBox/BackBox.tsx
+++ b/src/components/common/BackBox/BackBox.tsx
@@ -1,10 +1,9 @@
-import { useNavigate } from 'react-router-dom';
import { LeftIcon } from '../icons/Icons';
import { ReactNode } from 'react';
interface Props {
showBack?: boolean;
- // backHandler?: VoidFunction;
+ backHandler?: VoidFunction;
children?: ReactNode;
showSkip?: boolean;
skipHandler?: VoidFunction;
@@ -14,17 +13,15 @@ interface Props {
const BackBox = ({
showBack,
- // backHandler,
+ backHandler,
children,
showSkip,
skipHandler,
showSave,
saveHandler,
}: Props) => {
- const navigate = useNavigate();
-
const onBackClick = () => {
- navigate(-1);
+ backHandler && backHandler();
};
const onSkipClick = () => {
skipHandler && skipHandler();
diff --git a/src/components/common/icons/Icons.tsx b/src/components/common/icons/Icons.tsx
index 52355fba..18f154b1 100644
--- a/src/components/common/icons/Icons.tsx
+++ b/src/components/common/icons/Icons.tsx
@@ -268,6 +268,7 @@ export const PenIcon: React.FC
= ({
size = 25,
color = 'black',
fill = 'none',
+ className,
}) => {
return (