diff --git a/src/api/inquiry.js b/src/api/inquiry.js
index b76112e..cbda1b3 100644
--- a/src/api/inquiry.js
+++ b/src/api/inquiry.js
@@ -26,4 +26,18 @@ export const getInquiry = async ({ page, size, inquiryType, inquiryStatus }) =>
console.error(error);
throw error;
}
+}
+
+export const patchInquiryStatus = async ({ inquiryId, answer, status }) => {
+ try {
+ const response = await client.patch(`/api/v1/admin/inquiry/${inquiryId}`, {
+ answer: answer,
+ status: status,
+ });
+ return response;
+ }
+ catch (error) {
+ console.error(error);
+ throw error;
+ }
}
\ No newline at end of file
diff --git a/src/api/report.js b/src/api/report.js
index 721733f..54effa2 100644
--- a/src/api/report.js
+++ b/src/api/report.js
@@ -20,12 +20,15 @@ export const getReport = async ({ postType, startDate, endDate, nickname, pageab
export const patchReport = async ({ reportId, reportStatus }) => {
try {
- const response = await client.patch(`/api/v1/admin/report/${reportId}`, null, {
- params: {
- reportStatus: reportStatus,
- },
- });
- return response.data;
+ const response = await client.patch(`/api/v1/admin/report/${reportId}`,
+ null,
+ {
+ params: {
+ reportStatus: reportStatus,
+ },
+ }
+ );
+ return response;
} catch (error) {
console.error(error);
throw error;
diff --git a/src/components/common/table.jsx b/src/components/common/table.jsx
index 8d45a97..50d4eaf 100644
--- a/src/components/common/table.jsx
+++ b/src/components/common/table.jsx
@@ -5,7 +5,13 @@ export default function Table({ columns, data, renderAction, onRowClick, origina
{columns.map((col) => (
-
@@ -17,7 +23,11 @@ export default function Table({ columns, data, renderAction, onRowClick, origina
onClick={() => onRowClick && onRowClick(row, originalData && originalData[idx])}
>
{columns.map((col) => (
- {col.value}
+
+ {col.value}
+
))}