fix: small component fixes

This commit is contained in:
Taranto 2020-08-10 11:51:21 +01:00 committed by Josh Harvey
parent 0b28e7f98a
commit b153a23f25
7 changed files with 23 additions and 9 deletions

View file

@ -100,6 +100,7 @@ const ECol = ({
width,
textAlign,
suffix,
SuffixComponent = TL2,
view = it => it?.toString(),
inputProps = {}
} = config
@ -137,7 +138,9 @@ const ECol = ({
) : (
values && <>{view(values[name])}</>
)}
{suffix && <TL2 className={classes.suffix}>{suffix}</TL2>}
{suffix && (
<SuffixComponent className={classes.suffix}>{suffix}</SuffixComponent>
)}
</Td>
)
}