改了中文
This commit is contained in:
parent
47f02d7ec5
commit
e800982c05
|
|
@ -1,3 +1,3 @@
|
||||||
{
|
{
|
||||||
|
"CommentSection":"评论区"
|
||||||
}
|
}
|
||||||
|
|
@ -41,24 +41,26 @@ const List = (
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<h3 className={Styles.heading}>评论区</h3>
|
<h3 className={Styles.heading}>{t('CommentSection')}</h3>
|
||||||
|
|
||||||
{list && (
|
{list && (
|
||||||
<>
|
<>
|
||||||
{list.map((item) => {
|
{list.map((item) => {
|
||||||
return <div key={item.id} className={Styles.item}>{item.id}:</div>;
|
return (
|
||||||
|
<div key={item.id} className={Styles.item}>
|
||||||
|
{item.id}:
|
||||||
|
</div>
|
||||||
|
);
|
||||||
})}
|
})}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
{/* textarea*/}
|
{/* textarea*/}
|
||||||
<TextArea
|
<TextArea
|
||||||
value={newCommentText}
|
value={newCommentText}
|
||||||
onChange={(e)=>setNewCommentText(e.target.value)}
|
onChange={(e) => setNewCommentText(e.target.value)}
|
||||||
></TextArea>
|
></TextArea>
|
||||||
{/* button */}
|
{/* button */}
|
||||||
<Button
|
<Button onClick={handleSubmit}>{t('common::submit')}</Button>
|
||||||
onClick={handleSubmit}
|
|
||||||
>{t('common::submit')}</Button>
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue