chore(mobile): update explorer add item icon (#8969)
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@blocksuite/affine": "*",
|
"@blocksuite/affine": "*",
|
||||||
"@blocksuite/icons": "2.1.71"
|
"@blocksuite/icons": "2.1.72"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@affine/cli": "workspace:*",
|
"@affine/cli": "workspace:*",
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import { ExplorerTreeRoot } from '@affine/core/modules/explorer/views/tree';
|
|||||||
import { WorkbenchService } from '@affine/core/modules/workbench';
|
import { WorkbenchService } from '@affine/core/modules/workbench';
|
||||||
import { useI18n } from '@affine/i18n';
|
import { useI18n } from '@affine/i18n';
|
||||||
import { track } from '@affine/track';
|
import { track } from '@affine/track';
|
||||||
|
import { AddCollectionIcon } from '@blocksuite/icons/rc';
|
||||||
import { useLiveData, useServices } from '@toeverything/infra';
|
import { useLiveData, useServices } from '@toeverything/infra';
|
||||||
import { nanoid } from 'nanoid';
|
import { nanoid } from 'nanoid';
|
||||||
import { useCallback } from 'react';
|
import { useCallback } from 'react';
|
||||||
@@ -75,6 +76,7 @@ export const ExplorerCollections = () => {
|
|||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
<AddItemPlaceholder
|
<AddItemPlaceholder
|
||||||
|
icon={<AddCollectionIcon />}
|
||||||
data-testid="explorer-bar-add-collection-button"
|
data-testid="explorer-bar-add-collection-button"
|
||||||
label={t['com.affine.rootAppSidebar.collection.new']()}
|
label={t['com.affine.rootAppSidebar.collection.new']()}
|
||||||
onClick={() => handleCreateCollection()}
|
onClick={() => handleCreateCollection()}
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import {
|
|||||||
import { OrganizeService } from '@affine/core/modules/organize';
|
import { OrganizeService } from '@affine/core/modules/organize';
|
||||||
import { useI18n } from '@affine/i18n';
|
import { useI18n } from '@affine/i18n';
|
||||||
import track from '@affine/track';
|
import track from '@affine/track';
|
||||||
|
import { AddOrganizeIcon } from '@blocksuite/icons/rc';
|
||||||
import { useLiveData, useServices } from '@toeverything/infra';
|
import { useLiveData, useServices } from '@toeverything/infra';
|
||||||
import { useCallback, useState } from 'react';
|
import { useCallback, useState } from 'react';
|
||||||
|
|
||||||
@@ -54,6 +55,7 @@ export const ExplorerOrganize = () => {
|
|||||||
<ExplorerFolderNode key={child.id} nodeId={child.id as string} />
|
<ExplorerFolderNode key={child.id} nodeId={child.id as string} />
|
||||||
))}
|
))}
|
||||||
<AddItemPlaceholder
|
<AddItemPlaceholder
|
||||||
|
icon={<AddOrganizeIcon />}
|
||||||
data-testid="explorer-bar-add-organize-button"
|
data-testid="explorer-bar-add-organize-button"
|
||||||
label={t['com.affine.rootAppSidebar.organize.add-folder']()}
|
label={t['com.affine.rootAppSidebar.organize.add-folder']()}
|
||||||
onClick={() => setOpenNewFolderDialog(true)}
|
onClick={() => setOpenNewFolderDialog(true)}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import { ExplorerTreeRoot } from '@affine/core/modules/explorer/views/tree';
|
|||||||
import { TagService } from '@affine/core/modules/tag';
|
import { TagService } from '@affine/core/modules/tag';
|
||||||
import { useI18n } from '@affine/i18n';
|
import { useI18n } from '@affine/i18n';
|
||||||
import { track } from '@affine/track';
|
import { track } from '@affine/track';
|
||||||
|
import { AddTagIcon } from '@blocksuite/icons/rc';
|
||||||
import { useLiveData, useServices } from '@toeverything/infra';
|
import { useLiveData, useServices } from '@toeverything/infra';
|
||||||
import { useCallback, useState } from 'react';
|
import { useCallback, useState } from 'react';
|
||||||
|
|
||||||
@@ -50,6 +51,7 @@ export const ExplorerTags = () => {
|
|||||||
<ExplorerTagNode key={tag.id} tagId={tag.id} />
|
<ExplorerTagNode key={tag.id} tagId={tag.id} />
|
||||||
))}
|
))}
|
||||||
<AddItemPlaceholder
|
<AddItemPlaceholder
|
||||||
|
icon={<AddTagIcon />}
|
||||||
data-testid="explorer-add-tag-button"
|
data-testid="explorer-add-tag-button"
|
||||||
onClick={() => setShowNewTagDialog(true)}
|
onClick={() => setShowNewTagDialog(true)}
|
||||||
label={t[
|
label={t[
|
||||||
|
|||||||
@@ -373,7 +373,7 @@ __metadata:
|
|||||||
zod: "npm:^3.22.4"
|
zod: "npm:^3.22.4"
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
"@blocksuite/affine": "*"
|
"@blocksuite/affine": "*"
|
||||||
"@blocksuite/icons": 2.1.71
|
"@blocksuite/icons": 2.1.72
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user