From d490308598c1dddc048ff261b16e920be4cea6a2 Mon Sep 17 00:00:00 2001 From: Luwangel Date: Wed, 7 Aug 2019 15:25:09 +0200 Subject: [PATCH] Use theme.spacing() instead of theme.spacing.unit in Datagrid --- packages/ra-ui-materialui/src/list/Datagrid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ra-ui-materialui/src/list/Datagrid.js b/packages/ra-ui-materialui/src/list/Datagrid.js index b97b707d4ea..f210c784aab 100644 --- a/packages/ra-ui-materialui/src/list/Datagrid.js +++ b/packages/ra-ui-materialui/src/list/Datagrid.js @@ -54,7 +54,7 @@ const styles = theme => width: theme.spacing(6), }, expandButton: { - padding: theme.spacing.unit, + padding: theme.spacing(1), }, expandIconCell: { width: theme.spacing(6),