From a0372c66a8112ce534b49b0234cbbc9644538cfe Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Wed, 13 Mar 2024 13:25:32 -0300 Subject: [PATCH] simplify FeatureList component --- docs/src/modules/components/FeatureList.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/src/modules/components/FeatureList.js b/docs/src/modules/components/FeatureList.js index fd29f76180524a..d568d82ef36d0c 100644 --- a/docs/src/modules/components/FeatureList.js +++ b/docs/src/modules/components/FeatureList.js @@ -15,9 +15,7 @@ const ListRoot = styled('ul')({ gap: 6, }); -export default function FeatureList(props) { - const { features } = props; - +export default function FeatureList({ features }) { return ( {features.map((feature, item) => ( @@ -37,4 +35,4 @@ export default function FeatureList(props) { ); } -FeatureList.propTypes = {}; +FeatureList.propTypes = {}; // do I need this given it's a JS file?