aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/app/views/timeline-common/CollapseButton.tsx
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-12-31 21:07:52 +0800
committercrupest <crupest@outlook.com>2020-12-31 21:07:52 +0800
commitd9ac1c1d1d999b0e7719504ff5c3234915de8f06 (patch)
tree280496ce9cf68bdc3abcf2bc2b707927d013778b /FrontEnd/src/app/views/timeline-common/CollapseButton.tsx
parent8f13a5f8efad9cd50772d17db9a4599b8e724d6b (diff)
downloadtimeline-d9ac1c1d1d999b0e7719504ff5c3234915de8f06.tar.gz
timeline-d9ac1c1d1d999b0e7719504ff5c3234915de8f06.tar.bz2
timeline-d9ac1c1d1d999b0e7719504ff5c3234915de8f06.zip
...
Diffstat (limited to 'FrontEnd/src/app/views/timeline-common/CollapseButton.tsx')
-rw-r--r--FrontEnd/src/app/views/timeline-common/CollapseButton.tsx12
1 files changed, 6 insertions, 6 deletions
diff --git a/FrontEnd/src/app/views/timeline-common/CollapseButton.tsx b/FrontEnd/src/app/views/timeline-common/CollapseButton.tsx
index 3c52150f..da54f3fd 100644
--- a/FrontEnd/src/app/views/timeline-common/CollapseButton.tsx
+++ b/FrontEnd/src/app/views/timeline-common/CollapseButton.tsx
@@ -1,8 +1,5 @@
import React from "react";
import clsx from "clsx";
-import Svg from "react-inlinesvg";
-import arrowsAngleContractIcon from "bootstrap-icons/icons/arrows-angle-contract.svg";
-import arrowsAngleExpandIcon from "bootstrap-icons/icons/arrows-angle-expand.svg";
const CollapseButton: React.FC<{
collapse: boolean;
@@ -11,10 +8,13 @@ const CollapseButton: React.FC<{
style?: React.CSSProperties;
}> = ({ collapse, onClick, className, style }) => {
return (
- <Svg
- src={collapse ? arrowsAngleExpandIcon : arrowsAngleContractIcon}
+ <i
onClick={onClick}
- className={clsx("text-primary icon-button", className)}
+ className={clsx(
+ collapse ? "bi-arrows-angle-expand" : "bi-arrows-angle-contract",
+ "text-primary icon-button",
+ className
+ )}
style={style}
/>
);