@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 +2 -0
- package/package.json +1 -1
- package/src/components/article/index.tsx +6 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -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=
|
|
37
|
+
<article className={articleCls}>{props.children}</article>
|
|
33
38
|
</Article>
|
|
34
39
|
{tagNames && <Tags tags={tags} />}
|
|
35
40
|
</DelayFadeIn>
|