diff options
author | crupest <crupest@outlook.com> | 2020-06-04 00:18:50 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-06-04 00:18:50 +0800 |
commit | fccd6b4ca8ed7420f25f0c4298fde311bc1e09d0 (patch) | |
tree | 787cda66f8997ba842601a261a36b6de95398675 /Timeline/ClientApp/src/timeline/TimelinePageTemplateUI.tsx | |
parent | 92e50c4a3ea250dc18c76bc8c29d86d486e63772 (diff) | |
download | timeline-fccd6b4ca8ed7420f25f0c4298fde311bc1e09d0.tar.gz timeline-fccd6b4ca8ed7420f25f0c4298fde311bc1e09d0.tar.bz2 timeline-fccd6b4ca8ed7420f25f0c4298fde311bc1e09d0.zip |
refactor(front): Make codes lint-clean!
Diffstat (limited to 'Timeline/ClientApp/src/timeline/TimelinePageTemplateUI.tsx')
-rw-r--r-- | Timeline/ClientApp/src/timeline/TimelinePageTemplateUI.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Timeline/ClientApp/src/timeline/TimelinePageTemplateUI.tsx b/Timeline/ClientApp/src/timeline/TimelinePageTemplateUI.tsx index d96b3260..22fb1987 100644 --- a/Timeline/ClientApp/src/timeline/TimelinePageTemplateUI.tsx +++ b/Timeline/ClientApp/src/timeline/TimelinePageTemplateUI.tsx @@ -44,7 +44,7 @@ export default function TimelinePageTemplateUI<TTimeline, TEditItems>( const onPostEditHeightChange = React.useCallback((height: number): void => {
const { current: bottomSpaceDiv } = bottomSpaceRef;
if (bottomSpaceDiv != null) {
- bottomSpaceDiv.style.height = height + 'px';
+ bottomSpaceDiv.style.height = `${height}px`;
}
if (height === 0) {
const alertHost = getAlertHost();
@@ -54,7 +54,7 @@ export default function TimelinePageTemplateUI<TTimeline, TEditItems>( } else {
const alertHost = getAlertHost();
if (alertHost != null) {
- alertHost.style.marginBottom = height + 'px';
+ alertHost.style.marginBottom = `${height}px`;
}
}
}, []);
|