From dcd5c591f0dbd9f2e21ea71b323da37204030f11 Mon Sep 17 00:00:00 2001 From: kvakazyambra Date: Tue, 10 Oct 2023 22:45:35 +0300 Subject: [PATCH] Remove author in article cards on the author page --- src/components/Feed/Row1.tsx | 14 ++++++++++-- src/components/Feed/Row2.tsx | 4 +++- src/components/Feed/Row3.tsx | 7 +++++- src/components/Views/Author/Author.tsx | 30 +++++++++++++------------- 4 files changed, 36 insertions(+), 19 deletions(-) diff --git a/src/components/Feed/Row1.tsx b/src/components/Feed/Row1.tsx index b6b1f13c..fa184f4f 100644 --- a/src/components/Feed/Row1.tsx +++ b/src/components/Feed/Row1.tsx @@ -2,7 +2,12 @@ import { Show } from 'solid-js' import type { Shout } from '../../graphql/types.gen' import { ArticleCard } from './ArticleCard' -export const Row1 = (props: { article: Shout; nodate?: boolean; noAuthorLink?: boolean }) => ( +export const Row1 = (props: { + article: Shout + nodate?: boolean + noAuthorLink?: boolean + noauthor?: boolean +}) => (
@@ -10,7 +15,12 @@ export const Row1 = (props: { article: Shout; nodate?: boolean; noAuthorLink?: b
diff --git a/src/components/Feed/Row2.tsx b/src/components/Feed/Row2.tsx index 6a6d52cb..207e9f70 100644 --- a/src/components/Feed/Row2.tsx +++ b/src/components/Feed/Row2.tsx @@ -13,6 +13,7 @@ export const Row2 = (props: { isEqual?: boolean nodate?: boolean noAuthorLink?: boolean + noauthor?: boolean }) => { const [y, setY] = createSignal(0) @@ -33,7 +34,8 @@ export const Row2 = (props: { settings={{ isWithCover: props.isEqual || x[y()][i()] === '16', nodate: props.isEqual || props.nodate, - noAuthorLink: props.noAuthorLink + noAuthorLink: props.noAuthorLink, + noauthor: props.noauthor }} />
diff --git a/src/components/Feed/Row3.tsx b/src/components/Feed/Row3.tsx index 22890d24..b5520a17 100644 --- a/src/components/Feed/Row3.tsx +++ b/src/components/Feed/Row3.tsx @@ -8,6 +8,7 @@ export const Row3 = (props: { header?: JSX.Element nodate?: boolean noAuthorLink?: boolean + noauthor?: boolean }) => { return ( 0}> @@ -20,7 +21,11 @@ export const Row3 = (props: {
)} diff --git a/src/components/Views/Author/Author.tsx b/src/components/Views/Author/Author.tsx index d74f68e4..b0e5e161 100644 --- a/src/components/Views/Author/Author.tsx +++ b/src/components/Views/Author/Author.tsx @@ -207,34 +207,34 @@ export const AuthorView = (props: Props) => { - + - + - + 3}> - - - - - - + + + + + + {(shout) => ( <> - - - - - - + + + + + + )}