diff --git a/src/components/Article/FullArticle.tsx b/src/components/Article/FullArticle.tsx index 6046c682..ecc3c51b 100644 --- a/src/components/Article/FullArticle.tsx +++ b/src/components/Article/FullArticle.tsx @@ -3,13 +3,17 @@ import './Full.scss' import { Icon } from '../_shared/Icon' import ArticleComment from './Comment' import { AuthorCard } from '../Author/Card' -import { createMemo, For, onMount, Show } from 'solid-js' +import { createMemo, createSignal, For, onMount, Show } from 'solid-js' import type { Author, Reaction, Shout } from '../../graphql/types.gen' import { t } from '../../utils/intl' import { showModal } from '../../stores/ui' import MD from './MD' import { SharePopup } from './SharePopup' import { useSession } from '../../context/session' +import stylesHeader from '../Nav/Header.module.scss' +import styles from '../../styles/Article.module.scss' +import RatingControl from './RatingControl' +import { clsx } from 'clsx' const MAX_COMMENT_LEVEL = 6 @@ -39,6 +43,7 @@ const formatDate = (date: Date) => { export const FullArticle = (props: ArticleProps) => { const { session } = useSession() const formattedDate = createMemo(() => formatDate(new Date(props.article.createdAt))) + const [isSharePopupVisible, setIsSharePopupVisible] = createSignal(false) const mainTopic = () => (props.article.topics?.find((topic) => topic?.slug === props.article.mainTopic)?.title || '').replace( @@ -64,8 +69,8 @@ export const FullArticle = (props: ArticleProps) => { return (
-
-
-