From b13bc55fc8f40f80fbfe5c3e3a1abde3246a00b5 Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Tue, 13 Apr 2021 19:39:31 +0800
Subject: refactor: replace clsx with classnames.

---
 .../src/app/views/timeline-common/TimelinePageCardTemplate.tsx    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'FrontEnd/src/app/views/timeline-common/TimelinePageCardTemplate.tsx')

diff --git a/FrontEnd/src/app/views/timeline-common/TimelinePageCardTemplate.tsx b/FrontEnd/src/app/views/timeline-common/TimelinePageCardTemplate.tsx
index 56783e89..ad9b7ede 100644
--- a/FrontEnd/src/app/views/timeline-common/TimelinePageCardTemplate.tsx
+++ b/FrontEnd/src/app/views/timeline-common/TimelinePageCardTemplate.tsx
@@ -1,5 +1,5 @@
 import React from "react";
-import clsx from "clsx";
+import classnames from "classnames";
 import { useTranslation } from "react-i18next";
 
 import { getHttpHighlightClient } from "@/http/highlight";
@@ -52,7 +52,7 @@ const TimelinePageCardTemplate: React.FC<TimelineCardTemplateProps> = ({
       </small>
       <div className="text-right mt-2">
         <i
-          className={clsx(
+          className={classnames(
             timeline.isHighlight ? "bi-star-fill" : "bi-star",
             "icon-button text-yellow mr-3"
           )}
@@ -75,7 +75,7 @@ const TimelinePageCardTemplate: React.FC<TimelineCardTemplateProps> = ({
         />
         {user != null ? (
           <i
-            className={clsx(
+            className={classnames(
               timeline.isBookmark ? "bi-bookmark-fill" : "bi-bookmark",
               "icon-button text-yellow mr-3"
             )}
@@ -109,7 +109,7 @@ const TimelinePageCardTemplate: React.FC<TimelineCardTemplateProps> = ({
   return (
     <>
       <div
-        className={clsx("cru-card p-2 clearfix", className)}
+        className={classnames("cru-card p-2 clearfix", className)}
         style={{ zIndex: collapse ? 1029 : 1031 }}
       >
         <div className="float-right d-flex align-items-center">
-- 
cgit v1.2.3

