diff --git a/packages/shared/src/components/post/BasePostContent.tsx b/packages/shared/src/components/post/BasePostContent.tsx index 60c86a085a..e4aced44b1 100644 --- a/packages/shared/src/components/post/BasePostContent.tsx +++ b/packages/shared/src/components/post/BasePostContent.tsx @@ -39,6 +39,7 @@ export function BasePostContent({ {isPostPage ? ( ) : ( diff --git a/packages/shared/src/components/post/PostContentHeaderMobile.tsx b/packages/shared/src/components/post/PostContentHeaderMobile.tsx index a409cd1452..5b07beae96 100644 --- a/packages/shared/src/components/post/PostContentHeaderMobile.tsx +++ b/packages/shared/src/components/post/PostContentHeaderMobile.tsx @@ -1,15 +1,19 @@ import React, { ReactElement } from 'react'; import { useRouter } from 'next/router'; +import classNames from 'classnames'; import { Button, ButtonSize, ButtonVariant } from '../buttons/Button'; import { ArrowIcon } from '../icons'; import { PostHeaderActions } from './PostHeaderActions'; import { PostNavigationProps } from './common'; import { isNullOrUndefined } from '../../lib/func'; +import { WithClassNameProps } from '../utilities'; export function PostContentHeaderMobile({ post, + className, onReadArticle, -}: Pick): ReactElement { +}: Pick & + WithClassNameProps): ReactElement { const router = useRouter(); const canGoBack = !!globalThis?.history?.length && @@ -18,7 +22,12 @@ export function PostContentHeaderMobile({ !globalThis?.document?.referrer; // empty referrer means you are from the same site return ( - +