diff --git a/src/components/CardTable.res b/src/components/CardTable.res index 5fa972f3b..9b8e7b919 100644 --- a/src/components/CardTable.res +++ b/src/components/CardTable.res @@ -1,9 +1,11 @@ module TextCard = { @react.component let make = (~text) => { - if String.length(String.trim(text)) > 0 { + if text->LogicUtils.isNonEmptyString {
- {React.string(String.length(String.trim(text)) > 0 ? text : "N/A")}
+
{`${displayValue->String.slice(~start=0, ~end=endValue)}`->React.string}
- handleClick(ev)}> - {"..."->React.string} - +