aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/app/views/timeline-common/TimelineItem.tsx
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-01-03 19:38:05 +0800
committerGitHub <noreply@github.com>2021-01-03 19:38:05 +0800
commit418d631528fdb581a384068719e9af5dbaa66740 (patch)
tree42e2c0396a16cb5fbaaae665a238a8a031bef7f0 /FrontEnd/src/app/views/timeline-common/TimelineItem.tsx
parent4b3ae3edd9e8aceac5ff26ef137d2a8d686fe305 (diff)
parent8af803cb0da57af1355ad28cd056cb5dcf6d6915 (diff)
downloadtimeline-418d631528fdb581a384068719e9af5dbaa66740.tar.gz
timeline-418d631528fdb581a384068719e9af5dbaa66740.tar.bz2
timeline-418d631528fdb581a384068719e9af5dbaa66740.zip
Merge pull request #197 from crupest/front-dev
Front: Highlight and bookmark timeline and new home page.
Diffstat (limited to 'FrontEnd/src/app/views/timeline-common/TimelineItem.tsx')
-rw-r--r--FrontEnd/src/app/views/timeline-common/TimelineItem.tsx13
1 files changed, 4 insertions, 9 deletions
diff --git a/FrontEnd/src/app/views/timeline-common/TimelineItem.tsx b/FrontEnd/src/app/views/timeline-common/TimelineItem.tsx
index 408c49a1..233c81bd 100644
--- a/FrontEnd/src/app/views/timeline-common/TimelineItem.tsx
+++ b/FrontEnd/src/app/views/timeline-common/TimelineItem.tsx
@@ -2,9 +2,6 @@ import React from "react";
import clsx from "clsx";
import { Link } from "react-router-dom";
import { useTranslation } from "react-i18next";
-import Svg from "react-inlinesvg";
-import chevronDownIcon from "bootstrap-icons/icons/chevron-down.svg";
-import trashIcon from "bootstrap-icons/icons/trash.svg";
import { Modal, Button } from "react-bootstrap";
import { useAvatar } from "@/services/user";
@@ -98,9 +95,8 @@ const TimelineItem: React.FC<TimelineItemProps> = (props) => {
<small className="text-dark">{props.post.author.nickname}</small>
</span>
{more != null ? (
- <Svg
- src={chevronDownIcon}
- className="text-info icon-button"
+ <i
+ className="bi-chevron-down text-info icon-button"
onClick={(e) => {
more.toggle();
e.stopPropagation();
@@ -139,9 +135,8 @@ const TimelineItem: React.FC<TimelineItemProps> = (props) => {
className="position-absolute position-lt w-100 h-100 mask d-flex justify-content-center align-items-center"
onClick={more.toggle}
>
- <Svg
- src={trashIcon}
- className="text-danger icon-button large"
+ <i
+ className="bi-trash text-danger icon-button large"
onClick={(e) => {
setDeleteDialog(true);
e.stopPropagation();