diff --git a/src/app/preview/page.tsx b/src/app/preview/page.tsx index e3238bc2ff..31d3cca34c 100644 --- a/src/app/preview/page.tsx +++ b/src/app/preview/page.tsx @@ -16,8 +16,6 @@ import { previewDataAtom } from '~/atoms/preview' import { ErrorBoundary } from '~/components/common/ErrorBoundary' import { Paper } from '~/components/layout/container/Paper' import { NoteMetaBar, NoteRootBanner } from '~/components/widgets/note' -import { PageActionAside } from '~/components/widgets/page/PageActionAside' -import { PostActionAside } from '~/components/widgets/post' import { ArticleRightAside } from '~/components/widgets/shared/ArticleRightAside' import { ReadIndicatorForMobile } from '~/components/widgets/shared/ReadIndicator' import { debounce } from '~/lib/_' @@ -134,9 +132,7 @@ const PostPreview = () => { - - - + @@ -192,6 +188,10 @@ const NotePreview = () => { + + + + @@ -226,9 +226,7 @@ const PagePreview = () => { - - - + diff --git a/src/components/widgets/shared/ArticleRightAside.tsx b/src/components/widgets/shared/ArticleRightAside.tsx index a43b547b89..4232bdae32 100644 --- a/src/components/widgets/shared/ArticleRightAside.tsx +++ b/src/components/widgets/shared/ArticleRightAside.tsx @@ -2,6 +2,7 @@ import React from 'react' import clsx from 'clsx' +import type { FC } from 'react' import { useIsMobile } from '~/atoms' @@ -15,7 +16,9 @@ export const ArticleRightAside: Component = ({ children }) => { return {children} } -const ArticleRightAsideImpl: Component = ({ children }) => { +const ArticleRightAsideImpl: FC<{ + children?: React.ReactNode +}> = ({ children }) => { return ( ) }