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
commitb13bc55fc8f40f80fbfe5c3e3a1abde3246a00b5 (patch)
treea153e522625b9ee0cbd000d45285745631a27efb /FrontEnd/src/app/views/timeline-common/TimelinePostContentView.tsx
parent5d1ea4bf6910286af344bf2660875c989d92fcbb (diff)
downloadtimeline-b13bc55fc8f40f80fbfe5c3e3a1abde3246a00b5.tar.gz
timeline-b13bc55fc8f40f80fbfe5c3e3a1abde3246a00b5.tar.bz2
timeline-b13bc55fc8f40f80fbfe5c3e3a1abde3246a00b5.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,