改了中文

This commit is contained in:
cjx 2024-10-30 17:14:14 +08:00
parent 47f02d7ec5
commit e800982c05
2 changed files with 10 additions and 8 deletions

View File

@ -1,3 +1,3 @@
{ {
"CommentSection":"评论区"
} }

View File

@ -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>
</> </>
); );
}; };