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