게시글 상세 팝업 다국어 수정
This commit is contained in:
parent
45b0063b8b
commit
c8a27c5f01
@ -3,8 +3,11 @@
|
|||||||
import { useEffect, useState } from 'react'
|
import { useEffect, useState } from 'react'
|
||||||
import { useAxios } from '@/hooks/useAxios'
|
import { useAxios } from '@/hooks/useAxios'
|
||||||
import { handleFileDown } from '@/util/board-utils'
|
import { handleFileDown } from '@/util/board-utils'
|
||||||
|
import { useMessage } from '@/hooks/useMessage'
|
||||||
|
|
||||||
export default function BoardDetailModal({ noticeNo, setOpen }) {
|
export default function BoardDetailModal({ noticeNo, setOpen }) {
|
||||||
|
const { getMessage } = useMessage()
|
||||||
|
|
||||||
// api 조회 관련
|
// api 조회 관련
|
||||||
const { get } = useAxios()
|
const { get } = useAxios()
|
||||||
const [boardDetail, setBoardDetail] = useState({})
|
const [boardDetail, setBoardDetail] = useState({})
|
||||||
@ -46,7 +49,7 @@ export default function BoardDetailModal({ noticeNo, setOpen }) {
|
|||||||
setOpen(false)
|
setOpen(false)
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
닫기
|
{getMessage('board.sub.btn.close')}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div className="modal-body">
|
<div className="modal-body">
|
||||||
@ -55,7 +58,7 @@ export default function BoardDetailModal({ noticeNo, setOpen }) {
|
|||||||
|
|
||||||
{boardDetail.listFile && (
|
{boardDetail.listFile && (
|
||||||
<dl className="community_detail-file-wrap">
|
<dl className="community_detail-file-wrap">
|
||||||
<dt>첨부파일 목록</dt>
|
<dt>{getMessage('board.sub.fileList')}</dt>
|
||||||
{boardDetail.listFile.map((boardFile) => (
|
{boardDetail.listFile.map((boardFile) => (
|
||||||
<dd key={boardFile.encodeFileNo}>
|
<dd key={boardFile.encodeFileNo}>
|
||||||
<button type="button" className="down" onClick={() => handleFileDown(boardFile)}>
|
<button type="button" className="down" onClick={() => handleFileDown(boardFile)}>
|
||||||
|
|||||||
@ -376,6 +376,7 @@
|
|||||||
"board.sub.total": "全体",
|
"board.sub.total": "全体",
|
||||||
"board.sub.fileList": "添付ファイル一覧",
|
"board.sub.fileList": "添付ファイル一覧",
|
||||||
"board.sub.updDt": "更新日",
|
"board.sub.updDt": "更新日",
|
||||||
|
"board.sub.btn.close": "閉じる",
|
||||||
"myinfo.title": "マイプロフィール",
|
"myinfo.title": "マイプロフィール",
|
||||||
"myinfo.info.userId": "ユーザーID",
|
"myinfo.info.userId": "ユーザーID",
|
||||||
"myinfo.info.nameKana": "担当者名ふりがな",
|
"myinfo.info.nameKana": "担当者名ふりがな",
|
||||||
|
|||||||
@ -381,6 +381,7 @@
|
|||||||
"board.sub.total": "전체",
|
"board.sub.total": "전체",
|
||||||
"board.sub.fileList": "첨부파일 목록",
|
"board.sub.fileList": "첨부파일 목록",
|
||||||
"board.sub.updDt": "업데이트",
|
"board.sub.updDt": "업데이트",
|
||||||
|
"board.sub.btn.close": "닫기",
|
||||||
"myinfo.title": "My profile",
|
"myinfo.title": "My profile",
|
||||||
"myinfo.info.userId": "사용자ID",
|
"myinfo.info.userId": "사용자ID",
|
||||||
"myinfo.info.nameKana": "담당자명 후리가나",
|
"myinfo.info.nameKana": "담당자명 후리가나",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user