mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-26 02:35:58 +08:00
feat: allow peek view to be closed by the caller && bump bs (#8542)
depends on https://github.com/toeverything/blocksuite/pull/8558 fix BS-1570
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
import { Divider, Scrollable } from '@affine/component';
|
||||
import { DocPropertiesTable } from '@affine/core/components/doc-properties';
|
||||
import {
|
||||
type DefaultOpenProperty,
|
||||
DocPropertiesTable,
|
||||
} from '@affine/core/components/doc-properties';
|
||||
import { LinksRow } from '@affine/core/components/doc-properties/info-modal/links-row';
|
||||
import { TimeRow } from '@affine/core/components/doc-properties/info-modal/time-row';
|
||||
import { DocsSearchService } from '@affine/core/modules/docs-search';
|
||||
@@ -9,7 +12,13 @@ import { Suspense, useMemo } from 'react';
|
||||
|
||||
import * as styles from './doc-info.css';
|
||||
|
||||
export const DocInfoSheet = ({ docId }: { docId: string }) => {
|
||||
export const DocInfoSheet = ({
|
||||
docId,
|
||||
defaultOpenProperty,
|
||||
}: {
|
||||
docId: string;
|
||||
defaultOpenProperty?: DefaultOpenProperty;
|
||||
}) => {
|
||||
const docsSearchService = useService(DocsSearchService);
|
||||
const t = useI18n();
|
||||
|
||||
@@ -52,7 +61,7 @@ export const DocInfoSheet = ({ docId }: { docId: string }) => {
|
||||
<Divider size="thinner" />
|
||||
</>
|
||||
) : null}
|
||||
<DocPropertiesTable />
|
||||
<DocPropertiesTable defaultOpenProperty={defaultOpenProperty} />
|
||||
</Suspense>
|
||||
</Scrollable.Viewport>
|
||||
<Scrollable.Scrollbar className={styles.scrollBar} />
|
||||
|
||||
Reference in New Issue
Block a user