diff --git a/src/CAREUI/display/RecordMeta.tsx b/src/CAREUI/display/RecordMeta.tsx index 944ddf27c8f..818553d9207 100644 --- a/src/CAREUI/display/RecordMeta.tsx +++ b/src/CAREUI/display/RecordMeta.tsx @@ -11,6 +11,7 @@ interface Props { time?: string; prefix?: ReactNode; className?: string; + inlineClassName?: string; user?: { first_name: string; last_name: string; @@ -23,7 +24,14 @@ interface Props { * A generic component to display relative time along with a tooltip and a user * if provided. */ -const RecordMeta = ({ time, user, prefix, className, inlineUser }: Props) => { +const RecordMeta = ({ + time, + user, + prefix, + className, + inlineClassName, + inlineUser, +}: Props) => { const isOnline = user && isUserOnline(user); let child = ( @@ -47,11 +55,11 @@ const RecordMeta = ({ time, user, prefix, className, inlineUser }: Props) => { if (prefix || user) { child = ( -
+
{prefix} {child} {user && inlineUser && by} - {user && } + {user && !inlineUser && } {user && inlineUser && ( {formatName(user)} )} diff --git a/src/Components/Shifting/ShiftDetails.tsx b/src/Components/Shifting/ShiftDetails.tsx index 3d2a1f60b8b..a898b0cde15 100644 --- a/src/Components/Shifting/ShiftDetails.tsx +++ b/src/Components/Shifting/ShiftDetails.tsx @@ -806,13 +806,12 @@ export default function ShiftDetails(props: { id: string }) { {t("created")}
-
- {data?.created_by_object?.first_name} - {data?.created_by_object?.last_name} -
-
- {data?.created_date && formatDateTime(data?.created_date)} -
+
@@ -820,14 +819,12 @@ export default function ShiftDetails(props: { id: string }) { {t("last_edited")}
-
- {data?.last_edited_by_object?.first_name}{" "} - {data?.last_edited_by_object?.last_name} -
-
- {data?.modified_date && - formatDateTime(data?.modified_date)} -
+