diff options
author | crupest <crupest@outlook.com> | 2020-06-16 16:22:42 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-06-16 16:22:42 +0800 |
commit | e86881f789079e661fd2c37e3bee61ff2450b4f7 (patch) | |
tree | 0fada4faecc8d93fe2bec9d0c9a2192693890d66 /Timeline/ClientApp/src/app/timeline/TimelinePageTemplateUI.tsx | |
parent | 8ec86937ce4f8073a1cf49652533a1b65bf630af (diff) | |
download | timeline-e86881f789079e661fd2c37e3bee61ff2450b4f7.tar.gz timeline-e86881f789079e661fd2c37e3bee61ff2450b4f7.tar.bz2 timeline-e86881f789079e661fd2c37e3bee61ff2450b4f7.zip |
feat(front): Use bootstrap icons.
Diffstat (limited to 'Timeline/ClientApp/src/app/timeline/TimelinePageTemplateUI.tsx')
-rw-r--r-- | Timeline/ClientApp/src/app/timeline/TimelinePageTemplateUI.tsx | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/Timeline/ClientApp/src/app/timeline/TimelinePageTemplateUI.tsx b/Timeline/ClientApp/src/app/timeline/TimelinePageTemplateUI.tsx index 5eb6a310..d5dc2346 100644 --- a/Timeline/ClientApp/src/app/timeline/TimelinePageTemplateUI.tsx +++ b/Timeline/ClientApp/src/app/timeline/TimelinePageTemplateUI.tsx @@ -2,6 +2,10 @@ import React from 'react'; import { Spinner } from 'reactstrap'; import { useTranslation } from 'react-i18next'; import { fromEvent } from 'rxjs'; +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'; import { getAlertHost } from '../common/alert-service'; @@ -11,7 +15,6 @@ import Timeline, { } from './Timeline'; import AppBar from '../common/AppBar'; import TimelinePostEdit, { TimelinePostSendCallback } from './TimelinePostEdit'; -import CollapseButton from '../common/CollapseButton'; import { useEventEmiiter } from '../common'; export interface TimelineCardComponentProps<TTimeline, TManageItems> { @@ -189,7 +192,12 @@ export default function TimelinePageTemplateUI< className="fixed-top mt-appbar info-card-container" data-collapse={infoCardCollapse ? 'true' : 'false'} > - <CollapseButton + <Svg + src={ + infoCardCollapse + ? arrowsAngleContractIcon + : arrowsAngleExpandIcon + } collapse={infoCardCollapse} onClick={() => { const newState = !infoCardCollapse; @@ -199,7 +207,7 @@ export default function TimelinePageTemplateUI< newState.toString() ); }} - className="float-right m-1 info-card-collapse-button text-orange" + className="float-right m-1 info-card-collapse-button text-primary icon-button" /> <CardComponent timeline={timeline} |