From 589a1c490523c90d5c9c4985178b65893bdd8a48 Mon Sep 17 00:00:00 2001 From: cballevre Date: Mon, 21 Oct 2024 11:23:32 +0200 Subject: [PATCH] feat(ListItemSkeleton): Add gutters property to mock ListItem behavior --- react/Skeletons/ListItemSkeleton.jsx | 7 ++++--- react/Skeletons/Readme.md | 15 ++++++++++++--- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/react/Skeletons/ListItemSkeleton.jsx b/react/Skeletons/ListItemSkeleton.jsx index d4c58d2c0f..0eccf5a43f 100644 --- a/react/Skeletons/ListItemSkeleton.jsx +++ b/react/Skeletons/ListItemSkeleton.jsx @@ -7,10 +7,10 @@ import ListItemIcon from '../ListItemIcon' import ListItemText from '../ListItemText' import Skeleton from '../Skeleton' -const ListItemSkeleton = ({ hasSecondary, divider }) => { +const ListItemSkeleton = ({ hasSecondary, divider, gutters }) => { return ( <> - + - {variant => ( + {variant => { + const gutters = variant.disabledGutters ? 'disabled' : variant.doubleGutters ? 'double' : 'default' + + return ( - )} + )}} ```