diff --git a/src/components/Feed/Placeholder/Placeholder.tsx b/src/components/Feed/Placeholder/Placeholder.tsx index 47022f6f..50cb2157 100644 --- a/src/components/Feed/Placeholder/Placeholder.tsx +++ b/src/components/Feed/Placeholder/Placeholder.tsx @@ -3,11 +3,11 @@ import { For, Show } from 'solid-js' import { useLocalize } from '../../../context/localize' import { useSession } from '../../../context/session' +import { Icon } from '../../_shared/Icon' import styles from './Placeholder.module.scss' -import {Icon} from "../../_shared/Icon"; export type PlaceholderProps = { - type: string, + type: string mode: 'feed' | 'profile' } @@ -46,9 +46,9 @@ export const Placeholder = (props: PlaceholderProps) => { profileLinks: [ { href: '/how-to-write-a-good-article', - label: t('How to write a good article') - } - ] + label: t('How to write a good article'), + }, + ], }, authorComments: { image: 'placeholder-discussions.webp', @@ -59,25 +59,31 @@ export const Placeholder = (props: PlaceholderProps) => { profileLinks: [ { href: '/about/discussion-rules', - label: t('Discussion rules') + label: t('Discussion rules'), }, { href: '/about/discussion-rules#ban', - label: t('Block rules') - } - ] + label: t('Block rules'), + }, + ], }, } return ( -
+
-

-

+

+

@@ -85,7 +91,7 @@ export const Placeholder = (props: PlaceholderProps) => { {(link) => ( - + {link.label} )} @@ -104,7 +110,7 @@ export const Placeholder = (props: PlaceholderProps) => { {data[props.type].buttonLabel} - + diff --git a/src/components/Views/Author/Author.tsx b/src/components/Views/Author/Author.tsx index e2b6d4ad..a33c414a 100644 --- a/src/components/Views/Author/Author.tsx +++ b/src/components/Views/Author/Author.tsx @@ -27,8 +27,8 @@ import { Loading } from '../../_shared/Loading' import { MODALS, hideModal } from '../../../stores/ui' import { byCreated } from '../../../utils/sortby' import stylesArticle from '../../Article/Article.module.scss' +import { Placeholder } from '../../Feed/Placeholder' import styles from './Author.module.scss' -import {Placeholder} from "../../Feed/Placeholder"; type Props = { authorSlug: string @@ -264,7 +264,6 @@ export const AuthorView = (props: Props) => {
-
@@ -285,7 +284,9 @@ export const AuthorView = (props: Props) => {
- +
diff --git a/src/components/Views/Feed/Feed.tsx b/src/components/Views/Feed/Feed.tsx index f187ad07..f050871d 100644 --- a/src/components/Views/Feed/Feed.tsx +++ b/src/components/Views/Feed/Feed.tsx @@ -235,8 +235,10 @@ export const FeedView = (props: Props) => {
- }> + } + >