From 5f4a47e2b36b755d4d7c9a015634d5b57f80d0b7 Mon Sep 17 00:00:00 2001 From: devinleighsmith Date: Thu, 30 May 2024 12:25:32 -0700 Subject: [PATCH] psp-8549 correct property header retired status styling. --- .../property/MotiInventoryHeader.tsx | 29 +++++---- .../MotiInventoryHeader.test.tsx.snap | 63 ++++++++++++------- 2 files changed, 56 insertions(+), 36 deletions(-) diff --git a/source/frontend/src/features/mapSideBar/property/MotiInventoryHeader.tsx b/source/frontend/src/features/mapSideBar/property/MotiInventoryHeader.tsx index a60f91110d..e5a2cce772 100644 --- a/source/frontend/src/features/mapSideBar/property/MotiInventoryHeader.tsx +++ b/source/frontend/src/features/mapSideBar/property/MotiInventoryHeader.tsx @@ -6,6 +6,7 @@ import styled from 'styled-components'; import { StyledIconButton } from '@/components/common/buttons'; import { HeaderField } from '@/components/common/HeaderField/HeaderField'; +import { StyledFiller } from '@/components/common/HeaderField/styles'; import LoadingBackdrop from '@/components/common/LoadingBackdrop'; import { InlineFlexDiv } from '@/components/common/styles'; import TooltipWrapper from '@/components/common/TooltipWrapper'; @@ -75,12 +76,22 @@ export const MotiInventoryHeader: React.FunctionComponent - - {pid} - - - {apiProperty?.propertyType?.description} - + + + {pid} + + + {apiProperty?.propertyType?.description} + + {isRetired && ( + + + + RETIRED + + + )} + {hasLocation && ( @@ -96,12 +107,6 @@ export const MotiInventoryHeader: React.FunctionComponent )} - {isRetired && ( - - - RETIRED - - )} diff --git a/source/frontend/src/features/mapSideBar/property/__snapshots__/MotiInventoryHeader.test.tsx.snap b/source/frontend/src/features/mapSideBar/property/__snapshots__/MotiInventoryHeader.test.tsx.snap index d5a0e6cb36..0a0c72b5ad 100644 --- a/source/frontend/src/features/mapSideBar/property/__snapshots__/MotiInventoryHeader.test.tsx.snap +++ b/source/frontend/src/features/mapSideBar/property/__snapshots__/MotiInventoryHeader.test.tsx.snap @@ -6,7 +6,18 @@ exports[`MotiInventoryHeader component > renders as expected 1`] = ` class="Toastify" />
-
renders as expected 1`] = ` class="text-right col" >
- - - +
+ + + +
+
-
-
-
- - - +
+ + + +
+
-