Skip to content

Commit

Permalink
Apply suggestions from Code Review
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Jul 29, 2024
1 parent 3fc8e35 commit 85109ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
11 changes: 3 additions & 8 deletions src/CAREUI/display/Timeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,10 @@ export const TimelineNode = (props: TimelineNodeProps) => {
}`}{" "}
</span>
)}
{props.titleSuffix ? (
props.titleSuffix
) : (
{props.titleSuffix || (
<>
{props.event.type} {t(" the")}
<span className="capitalize">
{" "}
{props.name || name}
</span>
{`${props.event.type} the `}
<span className="capitalize">{props.name || name}</span>
</>
)}
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ export default function EventsList() {
/_/g,
" ",
) + " Event"
// .split("_")
// .map(
// (text) =>
// text[0].toUpperCase() + text.toLowerCase().slice(1),
// )
// .join(" ") + " Event"
}
event={{
type: item.change_type.replace(/_/g, " ").toLowerCase(),
Expand Down

0 comments on commit 85109ac

Please sign in to comment.