@bbki.ng/site 1.6.3 → 1.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @bbki.ng/site
2
2
 
3
+ ## 1.6.4
4
+
3
5
  ## 1.6.3
4
6
 
5
7
  ## 1.6.2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbki.ng/site",
3
- "version": "1.6.3",
3
+ "version": "1.6.4",
4
4
  "description": "code behind bbki.ng",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -2,6 +2,7 @@ import React, { ReactElement } from "react";
2
2
  import { Tags, Article } from "@bbki.ng/components";
3
3
  import { ROUTES } from "@/constants";
4
4
  import { DelayFadeIn } from "@/components/DelayFadeIn/DelayFadeIn";
5
+ import classNames from "classnames";
5
6
 
6
7
  type ArticlePageProps = {
7
8
  tags?: string[];
@@ -22,6 +23,10 @@ export const ArticlePage = (props: ArticlePageProps) => {
22
23
  return props.children;
23
24
  }
24
25
 
26
+ const articleCls = classNames("prose", {
27
+ "mb-20": tagNames,
28
+ });
29
+
25
30
  return (
26
31
  <DelayFadeIn delay={200}>
27
32
  <Article
@@ -29,7 +34,7 @@ export const ArticlePage = (props: ArticlePageProps) => {
29
34
  description={description}
30
35
  className={props.className}
31
36
  >
32
- <article className="prose mb-20">{props.children}</article>
37
+ <article className={articleCls}>{props.children}</article>
33
38
  </Article>
34
39
  {tagNames && <Tags tags={tags} />}
35
40
  </DelayFadeIn>