Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions src/pages/BulkMessagePage/BulkMessagePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ const CustomerSelectModal = ({
onConfirm(selectedCustomers);
onClose();
};
console.log(customers);

const filteredCustomers = customers.filter((customer) => {
const regionMatch =
regionCode === "전체" ||
Expand Down Expand Up @@ -451,10 +451,21 @@ const CustomerSelectModal = ({
sx={{
borderRadius: 1,
mb: 1,
backgroundColor: "#F8F9FA",
backgroundColor: selectedCustomers.some(
(c) => c.uid === customer.uid
)
? "#F6F8FF"
: "#F8F9FA",
cursor: "pointer",
border: selectedCustomers.some((c) => c.uid === customer.uid)
? "1px solid #164F9E"
: "1px solid transparent",
"&:hover": {
backgroundColor: "#E0E0E0",
backgroundColor: selectedCustomers.some(
(c) => c.uid === customer.uid
)
? "#EBF2FC"
: "#E0E0E0",
},
}}
onClick={() => handleCustomerSelect(customer)}
Expand Down Expand Up @@ -514,7 +525,7 @@ const CustomerSelectModal = ({
}}
>
{selectedCustomers.some((c) => c.uid === customer.uid) ? (
<CloseIcon />
<CloseIcon sx={{ color: "#164F9E" }} />
) : (
<AddIcon />
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
Paper,
Divider,
Link,
ListItem,
} from "@mui/material";
import { formatDate } from "@utils/dateUtil";

Expand Down Expand Up @@ -40,13 +41,17 @@ interface SurveyDetailModalProps {
onClose: () => void;
surveyDetail: SurveyDetail | null;
isLoading: boolean;
selectedCustomers: { uid: number }[];
handleCustomerSelect: (customer: { uid: number }) => void;
}

const SurveyDetailModal = ({
open,
onClose,
surveyDetail,
isLoading,
selectedCustomers,
handleCustomerSelect,
}: SurveyDetailModalProps) => {
console.log(surveyDetail);
return (
Expand Down
8 changes: 5 additions & 3 deletions src/pages/MessageTemplatePage/MessageTemplatePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,12 @@ const MessageTemplatePage = () => {
type: "success",
});
}
} catch (error) {
console.error("Error updating template:", error);
} catch (e) {
console.error("Error updating template:", e);
showToast({
message: "템플릿 수정 중 오류가 발생했습니다. 다시 시도해주세요.",
message:
e?.response?.data?.message ||
"템플릿 수정 중 오류가 발생했습니다. 다시 시도해주세요.",
type: "error",
});
} finally {
Expand Down