aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/app/views/timeline-common/TimelinePostContentView.tsx
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-04-13 19:39:31 +0800
committercrupest <crupest@outlook.com>2021-04-13 19:39:31 +0800
commitc939b64ce5fcc0833dd79d75edb86ade73f75f57 (patch)
treea1a4bb1ae973ed8c59b17cf8f70469c1fc86435d /FrontEnd/src/app/views/timeline-common/TimelinePostContentView.tsx
parent0b1faf00c6ae25a9d480e851421521991c017e3e (diff)
downloadtimeline-c939b64ce5fcc0833dd79d75edb86ade73f75f57.tar.gz
timeline-c939b64ce5fcc0833dd79d75edb86ade73f75f57.tar.bz2
timeline-c939b64ce5fcc0833dd79d75edb86ade73f75f57.zip
refactor: replace clsx with classnames.
Diffstat (limited to 'FrontEnd/src/app/views/timeline-common/TimelinePostContentView.tsx')
-rw-r--r--FrontEnd/src/app/views/timeline-common/TimelinePostContentView.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/FrontEnd/src/app/views/timeline-common/TimelinePostContentView.tsx b/FrontEnd/src/app/views/timeline-common/TimelinePostContentView.tsx
index 58fae4c7..607b72c9 100644
--- a/FrontEnd/src/app/views/timeline-common/TimelinePostContentView.tsx
+++ b/FrontEnd/src/app/views/timeline-common/TimelinePostContentView.tsx
@@ -1,5 +1,5 @@
import React from "react";
-import clsx from "clsx";
+import classnames from "classnames";
import { Remarkable } from "remarkable";
import { UiLogicError } from "@/common";
@@ -78,7 +78,7 @@ const ImageView: React.FC<TimelinePostContentViewProps> = (props) => {
post.timelineName,
post.id
)}
- className={clsx(className, "timeline-content-image")}
+ className={classnames(className, "timeline-content-image")}
style={style}
/>
);
@@ -152,7 +152,7 @@ const MarkdownView: React.FC<TimelinePostContentViewProps> = (props) => {
}
return (
<div
- className={clsx(className, "markdown-container")}
+ className={classnames(className, "markdown-container")}
style={style}
dangerouslySetInnerHTML={{
__html: markdownHtml,