diff --git a/components/admin/notification/NotificationTable.tsx b/components/admin/notification/NotificationTable.tsx index 15332b422..e1b15dc48 100644 --- a/components/admin/notification/NotificationTable.tsx +++ b/components/admin/notification/NotificationTable.tsx @@ -13,7 +13,7 @@ import axios from 'axios'; import PageNation from 'components/Pagination'; import AdminSearchBar from 'components/admin/common/AdminSearchBar'; import CreateNotiButton from 'components/admin/notification/CreateNotiButton'; -import style from 'styles/admin/notification/NotificationTable.module.scss'; +import styles from 'styles/admin/notification/NotificationTable.module.scss'; import instance from 'utils/axios'; interface INotification { @@ -79,30 +79,33 @@ export default function NotificationTable() { return ( <> -
-
- 알림 관리 +
+
+ 알림 관리
- - - + +
+ {tableFormat['notification'].columns.map((columnName) => ( - + {columnName} ))} - + {notificationInfo.notiList.map((notification: INotification) => ( - + {tableFormat['notification'].columns.map( (columnName: string, index: number) => { return ( - + {notification[ columnName as keyof INotification ]?.toString()} @@ -115,7 +118,7 @@ export default function NotificationTable() {
-
+