Change history: show a placeholder when change history is empty.

master
Tom Hacohen 4 years ago
parent 7ba75ae3c1
commit 1a18ce11ce

@ -96,6 +96,7 @@ export default function GenericChangeHistory(props: PropsType) {
return ( return (
<List style={{ height: "100%" }}> <List style={{ height: "100%" }}>
{(entriesList.length > 0) ? (
<AutoSizer> <AutoSizer>
{({ height, width }) => ( {({ height, width }) => (
<VirtualizedList <VirtualizedList
@ -107,6 +108,11 @@ export default function GenericChangeHistory(props: PropsType) {
/> />
)} )}
</AutoSizer> </AutoSizer>
) : (
<ListItem
primaryText="No entries found"
/>
)}
</List> </List>
); );
} }

Loading…
Cancel
Save