Skip to content

Commit

Permalink
fix: removed <s>
Browse files Browse the repository at this point in the history
  • Loading branch information
SPageot committed Mar 30, 2022
1 parent f0446e3 commit 3607749
Showing 1 changed file with 38 additions and 44 deletions.
82 changes: 38 additions & 44 deletions src/utils/functionUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const detailsViewData = (type, detailData, dataType, changeColor) => {
{detailData[dataType]?.changes[0]}
</Body>
<Body color={changeColor(dataType, 'DELETE')}>
<s>{detailData[dataType]?.original}</s>
{detailData[dataType]?.original}
</Body>
</>
);
Expand All @@ -56,7 +56,7 @@ export const detailsViewData = (type, detailData, dataType, changeColor) => {
return (
<>
<Body color={changeColor(dataType, 'DELETE')}>
<s>{detailData[dataType]?.original}</s>
{detailData[dataType]?.original}
</Body>
</>
);
Expand All @@ -82,7 +82,7 @@ export const detailsViewData = (type, detailData, dataType, changeColor) => {
{detailData[dataType]?.changes[0]}
</Body>
<Body color={changeColor(dataType, 'DELETE')}>
<s>{detailData[dataType]?.original}</s>
{detailData[dataType]?.original}
</Body>
</>
);
Expand Down Expand Up @@ -121,7 +121,7 @@ export const detailsViewData = (type, detailData, dataType, changeColor) => {
return (
<>
<Body color={changeColor(dataType, 'DELETE')}>
<s>{detailData[dataType]?.original}</s>
{detailData[dataType]?.original}
</Body>
</>
);
Expand Down Expand Up @@ -160,7 +160,7 @@ export const detailsViewData = (type, detailData, dataType, changeColor) => {
{detailData[dataType]?.changes[0]}
</Body>
<Body color={changeColor(dataType, 'DELETE')}>
<s>{detailData[dataType]?.original}</s>
{detailData[dataType]?.original}
</Body>
</>
);
Expand Down Expand Up @@ -218,19 +218,17 @@ export const detailsViewData = (type, detailData, dataType, changeColor) => {
</Body>
{detailData[dataType]?.changes[0] && detailData[dataType]?.original && (
<Body color={changeColor(dataType, 'DELETE')}>
<s>
<a
href={handleClickLink(detailData[dataType]?.original)}
target="_blank"
rel="noreferrer noopener">
{detailData[dataType].original
? detailData[dataType].original
: '---'}
{detailData[dataType].original && (
<LinkIcon height="15" width="30" />
)}
</a>
</s>
<a
href={handleClickLink(detailData[dataType]?.original)}
target="_blank"
rel="noreferrer noopener">
{detailData[dataType].original
? detailData[dataType].original
: '---'}
{detailData[dataType].original && (
<LinkIcon height="15" width="30" />
)}
</a>
</Body>
)}
</>
Expand Down Expand Up @@ -276,19 +274,17 @@ export const detailsViewData = (type, detailData, dataType, changeColor) => {
// show deleted subform links
return (
<Body color={changeColor(dataType, 'DELETE')}>
<s>
<a
href={handleClickLink(detailData[dataType]?.original)}
target="_blank"
rel="noreferrer noopener">
{detailData[dataType].original
? detailData[dataType].original
: '---'}
{detailData[dataType].original && (
<LinkIcon height="15" width="30" />
)}
</a>
</s>
<a
href={handleClickLink(detailData[dataType]?.original)}
target="_blank"
rel="noreferrer noopener">
{detailData[dataType].original
? detailData[dataType].original
: '---'}
{detailData[dataType].original && (
<LinkIcon height="15" width="30" />
)}
</a>
</Body>
);
}
Expand Down Expand Up @@ -322,19 +318,17 @@ export const detailsViewData = (type, detailData, dataType, changeColor) => {
</Body>
{detailData[dataType]?.changes[0] && detailData[dataType]?.original && (
<Body color={changeColor(dataType, 'DELETE')}>
<s>
<a
href={handleClickLink(detailData[dataType]?.original)}
target="_blank"
rel="noreferrer noopener">
{detailData[dataType].original
? detailData[dataType].original
: '---'}
{detailData[dataType].original && (
<LinkIcon height="15" width="30" />
)}
</a>
</s>
<a
href={handleClickLink(detailData[dataType]?.original)}
target="_blank"
rel="noreferrer noopener">
{detailData[dataType].original
? detailData[dataType].original
: '---'}
{detailData[dataType].original && (
<LinkIcon height="15" width="30" />
)}
</a>
</Body>
)}
</>
Expand Down

0 comments on commit 3607749

Please sign in to comment.