Fixed textvalue prop issue

This commit is contained in:
Rykkel
2024-07-30 02:45:39 +08:00
parent 1edf63cc5b
commit a4d6af7782
2 changed files with 4 additions and 0 deletions

View File

@@ -199,6 +199,7 @@ export default function CommunityPage() {
<DropdownMenu aria-label="Static Actions"> <DropdownMenu aria-label="Static Actions">
<DropdownItem <DropdownItem
key="edit" key="edit"
textValue="Edit"
onClick={() => { onClick={() => {
navigate(`edit/${post.id}`); navigate(`edit/${post.id}`);
}} }}
@@ -207,6 +208,7 @@ export default function CommunityPage() {
</DropdownItem> </DropdownItem>
<DropdownItem <DropdownItem
key="delete" key="delete"
textValue="Delete"
className="text-danger" className="text-danger"
color="danger" color="danger"
onClick={() => handleDeleteClick(post)} onClick={() => handleDeleteClick(post)}

View File

@@ -143,6 +143,7 @@ const PostPage: React.FC = () => {
<DropdownMenu aria-label="Static Actions"> <DropdownMenu aria-label="Static Actions">
<DropdownItem <DropdownItem
key="edit" key="edit"
textValue="Edit"
onClick={() => { onClick={() => {
navigate(`edit/${post.id}`); navigate(`edit/${post.id}`);
}} }}
@@ -151,6 +152,7 @@ const PostPage: React.FC = () => {
</DropdownItem> </DropdownItem>
<DropdownItem <DropdownItem
key="delete" key="delete"
textValue="Delete"
className="text-danger" className="text-danger"
color="danger" color="danger"
onClick={() => handleDeleteClick(post)} onClick={() => handleDeleteClick(post)}