mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-09 05:05:52 +08:00
feat: support import markdown (#638)
* feat: support import markdown * feat: support html import logic * chore: add pnpm check
This commit is contained in:
@@ -70,7 +70,7 @@ const FavoriteList = ({ showList }: { showList: boolean }) => {
|
||||
);
|
||||
};
|
||||
export const WorkSpaceSliderBar = () => {
|
||||
const { triggerQuickSearchModal } = useModal();
|
||||
const { triggerQuickSearchModal, triggerImportModal } = useModal();
|
||||
const [showSubFavorite, setShowSubFavorite] = useState(true);
|
||||
const { currentWorkspaceId } = useAppState();
|
||||
const { openPage, createPage } = usePageHelper();
|
||||
@@ -153,16 +153,13 @@ export const WorkSpaceSliderBar = () => {
|
||||
</StyledListItem>
|
||||
<FavoriteList showList={showSubFavorite} />
|
||||
|
||||
<Tooltip content="Coming soon" placement="right-start" zIndex={9999}>
|
||||
<StyledListItem
|
||||
disabled={true}
|
||||
onClick={() => {
|
||||
// triggerImportModal();
|
||||
}}
|
||||
>
|
||||
<ImportIcon /> Import
|
||||
</StyledListItem>
|
||||
</Tooltip>
|
||||
<StyledListItem
|
||||
onClick={() => {
|
||||
triggerImportModal();
|
||||
}}
|
||||
>
|
||||
<ImportIcon /> Import
|
||||
</StyledListItem>
|
||||
|
||||
<Link href={{ pathname: paths.trash }}>
|
||||
<StyledListItem active={router.asPath === paths.trash}>
|
||||
|
||||
Reference in New Issue
Block a user