mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 06:18:45 +08:00
refactor(core): refactor tag to use di (#6079)
use case ``` const tagService = useService(TagService); const tags = useLiveData(tagService.tags); const currentTagLiveData = tagService.tagByTagId(tagId); const currentTag = useLiveData(currentTagLiveData); ```
This commit is contained in:
@@ -201,7 +201,8 @@ export const ListItemTags: StoryFn<PageTagsProps> = props => (
|
||||
);
|
||||
|
||||
ListItemTags.args = {
|
||||
tags: testTags,
|
||||
// FIXME: this is a hack to make the storybook work
|
||||
// tags: testTags,
|
||||
hoverExpandDirection: 'left',
|
||||
widthOnHover: 600,
|
||||
maxItems: 5,
|
||||
|
||||
Reference in New Issue
Block a user