diff options
| author | crupest <crupest@outlook.com> | 2020-09-03 18:10:02 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2020-09-03 18:10:02 +0800 |
| commit | ac40d9c18e2ac7b4995dac38d5da04a3ea7f1559 (patch) | |
| tree | ed843d6075b8c7667f1a402dfddf3f892fba3ffa /Timeline/ClientApp/src/app/views/timeline-common/TimelinePageTemplateUI.tsx | |
| parent | b027f7d2793999159b362041b2f697df74e4b1b9 (diff) | |
| download | timeline-ac40d9c18e2ac7b4995dac38d5da04a3ea7f1559.tar.gz timeline-ac40d9c18e2ac7b4995dac38d5da04a3ea7f1559.tar.bz2 timeline-ac40d9c18e2ac7b4995dac38d5da04a3ea7f1559.zip | |
Migrate to react-bootstrap.
Diffstat (limited to 'Timeline/ClientApp/src/app/views/timeline-common/TimelinePageTemplateUI.tsx')
| -rw-r--r-- | Timeline/ClientApp/src/app/views/timeline-common/TimelinePageTemplateUI.tsx | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/Timeline/ClientApp/src/app/views/timeline-common/TimelinePageTemplateUI.tsx b/Timeline/ClientApp/src/app/views/timeline-common/TimelinePageTemplateUI.tsx index 7af11efa..e25ed962 100644 --- a/Timeline/ClientApp/src/app/views/timeline-common/TimelinePageTemplateUI.tsx +++ b/Timeline/ClientApp/src/app/views/timeline-common/TimelinePageTemplateUI.tsx @@ -1,9 +1,9 @@ import React, { CSSProperties } from "react"; -import { Spinner } from "reactstrap"; +import clsx from "clsx"; import { useTranslation } from "react-i18next"; import { fromEvent } from "rxjs"; import Svg from "react-inlinesvg"; -import clsx from "clsx"; +import { Spinner } from "react-bootstrap"; import arrowsAngleContractIcon from "bootstrap-icons/icons/arrows-angle-contract.svg"; import arrowsAngleExpandIcon from "bootstrap-icons/icons/arrows-angle-expand.svg"; @@ -262,7 +262,7 @@ export default function TimelinePageTemplateUI<TManageItems>( } else { timelineBody = ( <div className="full-viewport-center-child"> - <Spinner color="primary" type="grow" /> + <Spinner variant="primary" animation="grow" /> </div> ); } @@ -271,7 +271,7 @@ export default function TimelinePageTemplateUI<TManageItems>( body = ( <> <div - className="fixed-top mt-appbar info-card-container" + className="info-card-container" data-collapse={infoCardCollapse ? "true" : "false"} > <Svg @@ -304,7 +304,7 @@ export default function TimelinePageTemplateUI<TManageItems>( } else { body = ( <div className="full-viewport-center-child"> - <Spinner color="primary" type="grow" /> + <Spinner variant="primary" animation="grow" /> </div> ); } @@ -313,13 +313,7 @@ export default function TimelinePageTemplateUI<TManageItems>( return ( <> <AppBar /> - <div> - <div - style={{ height: 56 + cardHeight }} - className="timeline-page-top-space flex-fix-length" - /> - {body} - </div> + {body} </> ); } |
