Output className, remove extra } (#4132)

This commit is contained in:
Jaco Greeff 2020-12-01 16:49:01 +01:00 committed by GitHub
parent 69c6b2c9d9
commit a74ff3ccad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ function Output ({ children, className = '', help, isError, isFull, isHidden, is
labelExtra={labelExtra}
withLabel={withLabel}
>
<div className={`ui--output}${isError ? ' error' : ''}${isMonospace ? ' monospace' : ''}`}>
<div className={`ui--output${isError ? ' error' : ''}${isMonospace ? ' monospace' : ''}`}>
{isTrimmed && value && (value.length > 256)
? `${value.substr(0, 96)}…${value.substr(-96)}`
: value