diff --git a/components/PageHeading.tsx b/components/PageHeading.tsx index b44b84a..8f37b67 100644 --- a/components/PageHeading.tsx +++ b/components/PageHeading.tsx @@ -28,20 +28,20 @@ export default function PageHeading({ project, children }: Props) { return (
-
+
{project.coverImage ? ( avatar ) : ( - + )} -

+

{!!project.website && (

-
+
{children}
diff --git a/pages/[fund]/projects/[slug].tsx b/pages/[fund]/projects/[slug].tsx index 5cb7b62..60437be 100644 --- a/pages/[fund]/projects/[slug].tsx +++ b/pages/[fund]/projects/[slug].tsx @@ -67,17 +67,15 @@ const Project: NextPage = ({ project, donationStats }) =
-
- {coverImage ? ( +
+ {coverImage && ( avatar - ) : ( - )}
@@ -172,7 +170,7 @@ const Project: NextPage = ({ project, donationStats }) =
@@ -249,13 +247,5 @@ export async function getServerSideProps({ params, resolvedUrl }: GetServerSideP }) } - return { - props: { - project: { - ...project, - content, - }, - donationStats, - }, - } + return { props: { project: { ...project, content }, donationStats } } }