mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 13:25:12 +00:00
feat(component): new component to edit icon and name (#12921)
https://github.com/user-attachments/assets/994f7f58-bcbe-4f26-9142-282ffa5025f9 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced an icon and name editor component, allowing users to select emoji icons and edit names within a menu popover. - Added an emoji picker for icon selection, supporting theme adaptation. - **Style** - Applied new styles for the icon and name editor, including emoji picker appearance. - **Documentation** - Added Storybook stories to showcase and demonstrate the new icon and name editor component. - **Chores** - Added emoji-related dependencies to support emoji selection features. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -7,6 +7,10 @@ import { beforeEach, describe, expect, test, vi } from 'vitest';
|
||||
|
||||
import { resolveLinkToDoc, toURLSearchParams } from '../utils';
|
||||
|
||||
vi.mock('@emoji-mart/react', () => ({
|
||||
Emoji: () => null,
|
||||
}));
|
||||
|
||||
function defineTest(
|
||||
input: string,
|
||||
expected: ReturnType<typeof resolveLinkToDoc>
|
||||
|
||||
Reference in New Issue
Block a user