fix: remove unused code

This commit is contained in:
fantasticit 2022-03-22 13:08:05 +08:00
parent 54cc57bb1b
commit 90e8acd065
1 changed files with 0 additions and 2 deletions

View File

@ -10,7 +10,6 @@ import { User } from 'components/user';
import { Theme } from 'components/theme'; import { Theme } from 'components/theme';
import { useDocumentStyle } from 'hooks/useDocumentStyle'; import { useDocumentStyle } from 'hooks/useDocumentStyle';
import { useWindowSize } from 'hooks/useWindowSize'; import { useWindowSize } from 'hooks/useWindowSize';
import { useLazyMount } from 'hooks/useMount';
import { usePublicDocument } from 'data/document'; import { usePublicDocument } from 'data/document';
import { DocumentSkeleton } from 'components/tiptap'; import { DocumentSkeleton } from 'components/tiptap';
import { DocumentContent } from './content'; import { DocumentContent } from './content';
@ -27,7 +26,6 @@ interface IProps {
export const DocumentPublicReader: React.FC<IProps> = ({ documentId, hideLogo = true }) => { export const DocumentPublicReader: React.FC<IProps> = ({ documentId, hideLogo = true }) => {
if (!documentId) return null; if (!documentId) return null;
const mounted = useLazyMount();
const { data, loading, error, query } = usePublicDocument(documentId); const { data, loading, error, query } = usePublicDocument(documentId);
const { width: windowWidth } = useWindowSize(); const { width: windowWidth } = useWindowSize();
const { width, fontSize } = useDocumentStyle(); const { width, fontSize } = useDocumentStyle();