aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/app/views/timeline-common/TimelinePostView.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/TimelinePostView.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/TimelinePostView.tsx')
-rw-r--r--FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx b/FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx
index fd59203a..295ee3b9 100644
--- a/FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx
+++ b/FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx
@@ -1,5 +1,5 @@
import React from "react";
-import clsx from "clsx";
+import classnames from "classnames";
import { Link } from "react-router-dom";
import { getHttpTimelineClient, HttpTimelinePostInfo } from "@/http/timeline";
@@ -48,7 +48,7 @@ const TimelinePostView: React.FC<TimelinePostViewProps> = (props) => {
return (
<div
id={`timeline-post-${post.id}`}
- className={clsx("timeline-item", current && "current", className)}
+ className={classnames("timeline-item", current && "current", className)}
style={style}
>
<TimelineLine center="node" current={current} />