diff --git a/apps/civicsignalblog/contrib/dokku/Dockerfile b/apps/civicsignalblog/contrib/dokku/Dockerfile index 3818ff09c..a0126a16e 100644 --- a/apps/civicsignalblog/contrib/dokku/Dockerfile +++ b/apps/civicsignalblog/contrib/dokku/Dockerfile @@ -1 +1 @@ -FROM codeforafrica/codeforafrica-ui:0.1.9 +FROM codeforafrica/codeforafrica-ui:0.1.10 diff --git a/apps/civicsignalblog/package.json b/apps/civicsignalblog/package.json index faf7e04b0..bf3a0d98c 100644 --- a/apps/civicsignalblog/package.json +++ b/apps/civicsignalblog/package.json @@ -1,6 +1,6 @@ { "name": "civicsignalblog", - "version": "0.1.9", + "version": "0.1.10", "private": true, "author": "Code for Africa ", "description": "This is the (temporary) CivicSignal blog", diff --git a/apps/civicsignalblog/src/components/ArticleHeader/ArticleHeader.js b/apps/civicsignalblog/src/components/ArticleHeader/ArticleHeader.js index c0396d629..a90168513 100644 --- a/apps/civicsignalblog/src/components/ArticleHeader/ArticleHeader.js +++ b/apps/civicsignalblog/src/components/ArticleHeader/ArticleHeader.js @@ -1,14 +1,12 @@ import { Section } from "@commons-ui/core"; -import { Link, RichTypography } from "@commons-ui/next"; +import { RichTypography } from "@commons-ui/next"; import PropTypes from "prop-types"; import React from "react"; -import ChoiceChip from "@/civicsignalblog/components/ChoiceChip"; -import ChoiceChipGroup from "@/civicsignalblog/components/ChoiceChipGroup"; import ShareThisPage from "@/civicsignalblog/components/ShareThisPage"; const ArticleHeader = React.forwardRef(function ArticleHeader(props, ref) { - const { date, excerpt, sx, tags, title, primaryTag } = props; + const { date, excerpt, sx, title } = props; return (
{excerpt} - {tags?.length > 0 ? ( - - {tags.map((tag) => ( - - ))} - - ) : null} !equalsIgnoreCase(tag.name, primaryTag), ); return ( @@ -39,8 +41,6 @@ function ArticlePage({ {content} - -
- {authors?.map((author) => ( - - ))} -
+ {authors?.length > 0 ? ( +
+ {authors?.map((author) => ( + + ))} +
+ ) : null} + {filteredTags?.length > 0 ? ( + <> + +
+ + {filteredTags.map((tag) => ( + + ))} + +
+ + ) : null} ); } diff --git a/apps/civicsignalblog/src/components/ArticlePage/ArticlePage.snap.js b/apps/civicsignalblog/src/components/ArticlePage/ArticlePage.snap.js index c79a3e09b..60c2242e7 100644 --- a/apps/civicsignalblog/src/components/ArticlePage/ArticlePage.snap.js +++ b/apps/civicsignalblog/src/components/ArticlePage/ArticlePage.snap.js @@ -33,23 +33,6 @@ exports[` renders unchanged 1`] = ` > Article -
@@ -106,15 +89,8 @@ exports[` renders unchanged 1`] = `
-
-
-
renders unchanged 1`] = `
+
+
+
+ `; diff --git a/apps/codeforafrica/contrib/dokku/Dockerfile b/apps/codeforafrica/contrib/dokku/Dockerfile index b8326f59f..af16e7245 100644 --- a/apps/codeforafrica/contrib/dokku/Dockerfile +++ b/apps/codeforafrica/contrib/dokku/Dockerfile @@ -1 +1 @@ -FROM codeforafrica/codeforafrica-ui:1.0.54 +FROM codeforafrica/codeforafrica-ui:1.0.55 diff --git a/apps/codeforafrica/package.json b/apps/codeforafrica/package.json index d23fc0ba1..1a7cde5ab 100644 --- a/apps/codeforafrica/package.json +++ b/apps/codeforafrica/package.json @@ -1,6 +1,6 @@ { "name": "codeforafrica", - "version": "1.0.54", + "version": "1.0.55", "private": true, "author": "Code for Africa ", "description": "This is the main CFA site.", diff --git a/apps/codeforafrica/src/components/ArticleHeader/ArticleHeader.js b/apps/codeforafrica/src/components/ArticleHeader/ArticleHeader.js index 693e1a91b..e8858e572 100644 --- a/apps/codeforafrica/src/components/ArticleHeader/ArticleHeader.js +++ b/apps/codeforafrica/src/components/ArticleHeader/ArticleHeader.js @@ -1,14 +1,12 @@ import { Section } from "@commons-ui/core"; -import { Link, RichTypography } from "@commons-ui/next"; +import { RichTypography } from "@commons-ui/next"; import PropTypes from "prop-types"; import React from "react"; -import ChoiceChip from "@/codeforafrica/components/ChoiceChip"; -import ChoiceChipGroup from "@/codeforafrica/components/ChoiceChipGroup"; import ShareThisPage from "@/codeforafrica/components/ShareThisPage"; const ArticleHeader = React.forwardRef(function ArticleHeader(props, ref) { - const { date, excerpt, sx, tags, title, primaryTag } = props; + const { date, excerpt, sx, title } = props; return (
{excerpt} - {tags?.length > 0 ? ( - - {tags.map((tag) => ( - - ))} - - ) : null} !equalsIgnoreCase(tag.name, primaryTag), ); return ( @@ -39,8 +41,6 @@ function ArticlePage({ {content} - -
- {authors?.map((author) => ( - - ))} -
+ {authors?.length > 0 ? ( +
+ {authors?.map((author) => ( + + ))} +
+ ) : null} + {filteredTags?.length > 0 ? ( + <> + +
+ + {filteredTags.map((tag) => ( + + ))} + +
+ + ) : null} ); } diff --git a/apps/codeforafrica/src/components/ArticlePage/ArticlePage.snap.js b/apps/codeforafrica/src/components/ArticlePage/ArticlePage.snap.js index 4b8166579..b6915310a 100644 --- a/apps/codeforafrica/src/components/ArticlePage/ArticlePage.snap.js +++ b/apps/codeforafrica/src/components/ArticlePage/ArticlePage.snap.js @@ -33,23 +33,6 @@ exports[` renders unchanged 1`] = ` > Article -
@@ -106,15 +89,8 @@ exports[` renders unchanged 1`] = `
-
-
-
renders unchanged 1`] = `
+
+
+
+ `;