mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
fix: detail reduction of UI (#1131)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { useTranslation } from '@affine/i18n';
|
||||
import { AllPagesIcon } from '@blocksuite/icons';
|
||||
import { FolderIcon } from '@blocksuite/icons';
|
||||
import Head from 'next/head';
|
||||
import { ReactElement, useCallback } from 'react';
|
||||
|
||||
@@ -18,7 +18,7 @@ const All = () => {
|
||||
<Head>
|
||||
<title>{t('All pages')} - AFFiNE</title>
|
||||
</Head>
|
||||
<PageListHeader icon={<AllPagesIcon />}>{t('All pages')}</PageListHeader>
|
||||
<PageListHeader icon={<FolderIcon />}>{t('All pages')}</PageListHeader>
|
||||
<PageList
|
||||
pageList={pageList.filter(p => !p.trash)}
|
||||
showFavoriteTag={true}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useTranslation } from '@affine/i18n';
|
||||
import { FavouritesIcon } from '@blocksuite/icons';
|
||||
import { FavoriteIcon } from '@blocksuite/icons';
|
||||
import Head from 'next/head';
|
||||
import { ReactElement } from 'react';
|
||||
|
||||
@@ -16,9 +16,7 @@ export const Favorite = () => {
|
||||
<Head>
|
||||
<title>{t('Favorites')} - AFFiNE</title>
|
||||
</Head>
|
||||
<PageListHeader icon={<FavouritesIcon />}>
|
||||
{t('Favorites')}
|
||||
</PageListHeader>
|
||||
<PageListHeader icon={<FavoriteIcon />}>{t('Favorites')}</PageListHeader>
|
||||
<PageList
|
||||
pageList={pageList.filter(p => p.favorite && !p.trash)}
|
||||
showFavoriteTag={true}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useTranslation } from '@affine/i18n';
|
||||
import { TrashIcon } from '@blocksuite/icons';
|
||||
import { DeleteTemporarilyIcon } from '@blocksuite/icons';
|
||||
import Head from 'next/head';
|
||||
import { ReactElement, useCallback } from 'react';
|
||||
|
||||
@@ -18,7 +18,9 @@ export const Trash = () => {
|
||||
<Head>
|
||||
<title>{t('Trash')} - AFFiNE</title>
|
||||
</Head>
|
||||
<PageListHeader icon={<TrashIcon />}>{t('Trash')}</PageListHeader>
|
||||
<PageListHeader icon={<DeleteTemporarilyIcon />}>
|
||||
{t('Trash')}
|
||||
</PageListHeader>
|
||||
<PageList
|
||||
pageList={pageList.filter(p => p.trash)}
|
||||
isTrash={true}
|
||||
|
||||
Reference in New Issue
Block a user