fix: correct the tooltip of view type in the Attachments page (#4785)

#### What type of PR is this?

/kind bug

#### What this PR does / why we need it:

console附件页面List Mode和Grid Mode的tooltip写反了:
<img width="1172" alt="image" src="https://github.com/halo-dev/halo/assets/4889894/6645b29f-7e92-4c42-9938-892e53f92115">


#### Which issue(s) this PR fixes:

Fixes #

#### Special notes for your reviewer:

#### Does this PR introduce a user-facing change?

```release-note
修复附件管理布局切换按钮的提示文字。
```
pull/4797/head
exialin 2023-10-29 00:15:38 +08:00 committed by GitHub
parent b5094d6e6f
commit f2d7376d9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -178,12 +178,12 @@ const onUploadModalClose = () => {
const viewTypes = [
{
name: "list",
tooltip: t("core.attachment.filters.view_type.items.grid"),
tooltip: t("core.attachment.filters.view_type.items.list"),
icon: IconList,
},
{
name: "grid",
tooltip: t("core.attachment.filters.view_type.items.list"),
tooltip: t("core.attachment.filters.view_type.items.grid"),
icon: IconGrid,
},
];