diff options
| author | crupest <crupest@outlook.com> | 2021-01-03 19:38:05 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-03 19:38:05 +0800 |
| commit | d6f5cc98880b4664baf223d7147feb466e3cce5d (patch) | |
| tree | ccc1167e69d7e8fcc58760e2d7de3a534150cff3 /FrontEnd/src/app/views/timeline-common/TimelinePostEdit.tsx | |
| parent | d25b74fa167944a7701997e34810a2ffc3c39edd (diff) | |
| parent | 1b7a9096b1fd7c26a9336950a4a4b4253bcb5926 (diff) | |
| download | timeline-d6f5cc98880b4664baf223d7147feb466e3cce5d.tar.gz timeline-d6f5cc98880b4664baf223d7147feb466e3cce5d.tar.bz2 timeline-d6f5cc98880b4664baf223d7147feb466e3cce5d.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/TimelinePostEdit.tsx')
| -rw-r--r-- | FrontEnd/src/app/views/timeline-common/TimelinePostEdit.tsx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/FrontEnd/src/app/views/timeline-common/TimelinePostEdit.tsx b/FrontEnd/src/app/views/timeline-common/TimelinePostEdit.tsx index dfa2f879..207bf6af 100644 --- a/FrontEnd/src/app/views/timeline-common/TimelinePostEdit.tsx +++ b/FrontEnd/src/app/views/timeline-common/TimelinePostEdit.tsx @@ -1,10 +1,7 @@ import React from "react"; import clsx from "clsx"; import { useTranslation } from "react-i18next"; -import Svg from "react-inlinesvg"; import { Button, Spinner, Row, Col, Form } from "react-bootstrap"; -import textIcon from "bootstrap-icons/icons/card-text.svg"; -import imageIcon from "bootstrap-icons/icons/image.svg"; import { UiLogicError } from "@/common"; @@ -212,10 +209,12 @@ const TimelinePostEdit: React.FC<TimelinePostEditProps> = (props) => { return ( <> <div className="d-block text-center mt-1 mb-2"> - <Svg + <i onLoad={notifyHeightChange} - src={kind === "text" ? imageIcon : textIcon} - className="icon-button" + className={clsx( + kind === "text" ? "bi-image" : "bi-card-text", + "icon-button" + )} onClick={toggleKind} /> </div> |
