refactor: tighten types and reuse instrument UI
This commit is contained in:
@@ -18,6 +18,7 @@ type EntryCardProps = {
|
||||
| "positive";
|
||||
value: string;
|
||||
valueLabel: string;
|
||||
wrap?: boolean;
|
||||
};
|
||||
|
||||
const EntryCard: FC<EntryCardProps> = (props) => {
|
||||
@@ -31,7 +32,12 @@ const EntryCard: FC<EntryCardProps> = (props) => {
|
||||
const valueLabelClass = `${classes[props.tone]} ${props.actions ? classes.valueLabel : ""}`;
|
||||
|
||||
return (
|
||||
<Paper className={classes.row} style={surfaceStyle} withBorder>
|
||||
<Paper
|
||||
className={classes.row}
|
||||
data-wrap={props.wrap || undefined}
|
||||
style={surfaceStyle}
|
||||
withBorder
|
||||
>
|
||||
<Avatar
|
||||
alt=""
|
||||
aria-hidden="true"
|
||||
|
||||
Reference in New Issue
Block a user