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 | 70be5235ba90a15b7798a7922382835fd680b1fc (patch) | |
| tree | 9f1ed076ecb0b7ef884b8cd8aa5c7e7497cb6376 /Timeline/ClientApp/src/app/views/timeline-common/TimelinePageTemplateUI.tsx | |
| parent | b06cd597488b2d1c12ef9e35b25bdba6a9d4b11e (diff) | |
| download | timeline-70be5235ba90a15b7798a7922382835fd680b1fc.tar.gz timeline-70be5235ba90a15b7798a7922382835fd680b1fc.tar.bz2 timeline-70be5235ba90a15b7798a7922382835fd680b1fc.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} </> ); } |
