Skip to content

Commit

Permalink
[Style] change language each table header #717
Browse files Browse the repository at this point in the history
  • Loading branch information
mike2ox committed Mar 8, 2023
1 parent 3b7ccb3 commit 31e161e
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 5 deletions.
11 changes: 10 additions & 1 deletion components/admin/announcement/AnnounceList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ const Quill = dynamic(() => import('react-quill'), {
loading: () => <p>Loading ...</p>,
});

const tableTitle: { [key: string]: string } = {
content: '내용',
createdTime: '생성일',
creatorIntraId: '생성한 사람',
deletedTime: '삭제일',
deleterIntraId: '삭제한 사람',
isDel: '삭제 여부',
};

interface IAnnouncement {
content: string;
creatorIntraId: string;
Expand Down Expand Up @@ -76,7 +85,7 @@ export default function AnnounceList() {
<TableRow>
{tableFormat['announcement'].columns.map((columnName) => (
<TableCell className={styles.tableHeaderItem} key={columnName}>
{columnName}
{tableTitle[columnName]}
</TableCell>
))}
</TableRow>
Expand Down
11 changes: 10 additions & 1 deletion components/admin/feedback/FeedbackTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ import {
} from '@mui/material';
import styles from 'styles/admin/feedback/FeedbackTable.module.scss';

const tableTitle: { [key: string]: string } = {
id: 'ID',
intraId: 'intra ID',
category: '종류',
content: '내용',
createdTime: '생성일',
isSolved: '해결 여부',
};

export interface IFeedback {
id: number;
intraId: string;
Expand Down Expand Up @@ -107,7 +116,7 @@ export default function FeedbackTable() {
className={styles.tableHeaderItem}
key={columnName}
>
{columnName}
{tableTitle[columnName]}
</TableCell>
))}
</TableRow>
Expand Down
14 changes: 12 additions & 2 deletions components/admin/notification/NotificationTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,23 @@ import {
TableHead,
TableRow,
} from '@mui/material';
import axios from 'axios';
import PageNation from 'components/Pagination';
import AdminSearchBar from 'components/admin/common/AdminSearchBar';
import CreateNotiButton from 'components/admin/notification/CreateNotiButton';
import styles from 'styles/admin/notification/NotificationTable.module.scss';
import instance from 'utils/axios';

const tableTitle: { [key: string]: string } = {
notiId: 'ID',
roleType: '권한',
intraId: 'Intra ID',
slotId: '슬롯 ID',
type: '종류',
message: '내용',
createdTime: '생성일',
isChecked: '확인 여부',
};

interface INotification {
notiId: number;
intraId: string;
Expand Down Expand Up @@ -94,7 +104,7 @@ export default function NotificationTable() {
className={styles.tableHeaderItem}
key={columnName}
>
{columnName}
{tableTitle[columnName]}
</TableCell>
))}
</TableRow>
Expand Down
2 changes: 1 addition & 1 deletion components/admin/users/UserManagementTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function UserManagementTable() {
const setModal = useSetRecoilState(modalState);

const tableTitle: { [key: string]: string } = {
id: 'Id',
id: 'ID',
roleType: '권한',
intraId: 'Intra ID',
statusMessage: '상태 메시지',
Expand Down

0 comments on commit 31e161e

Please sign in to comment.