改了中文

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,12 +41,16 @@ 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>
);
})}
</>
)}
@ -56,9 +60,7 @@ const List = (
onChange={(e) => setNewCommentText(e.target.value)}
></TextArea>
{/* button */}
<Button
onClick={handleSubmit}
>{t('common::submit')}</Button>
<Button onClick={handleSubmit}>{t('common::submit')}</Button>
</>
);
};