Skip to content

Commit

Permalink
Merge pull request #11094 from codeSafari10/deployment-lifecycle-enha…
Browse files Browse the repository at this point in the history
…ncement

Deployment lifecycle enhancement
  • Loading branch information
aabidsofi19 committed Jun 8, 2024
2 parents c2f2a1f + de790be commit b013b80
Show file tree
Hide file tree
Showing 21 changed files with 1,178 additions and 474 deletions.
5 changes: 3 additions & 2 deletions ui/components/DataFormatter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export const TextWithLinks = ({ text, ...typographyProps }) => {
const linkRegex = /(https?:\/\/[^\s]+)/g;

// Split the text into parts, alternating between text and link components
const parts = text.split(linkRegex);
const parts = text?.split?.(linkRegex) || [];

// Map the parts to React elements
const elements = parts.map((part, idx) => {
Expand All @@ -175,7 +175,7 @@ export const TextWithLinks = ({ text, ...typographyProps }) => {
}
});

return <Typography {...typographyProps}>{elements}</Typography>;
return <Typography {...typographyProps}> {elements}</Typography>;
};

export const KeyValue = ({ Key, Value }) => {
Expand Down Expand Up @@ -208,6 +208,7 @@ export const KeyValue = ({ Key, Value }) => {
color: theme.palette.text.secondary,
textOverflow: 'ellipsis',
wordBreak: 'break-all',
whiteSpace: 'pre-line',
}}
/>
)}
Expand Down
Loading

0 comments on commit b013b80

Please sign in to comment.