From da380cb1b09ad0eb487eb72fcf24ee5508392376 Mon Sep 17 00:00:00 2001 From: Tuan Nguyen Date: Wed, 12 Aug 2020 12:44:36 +1000 Subject: [PATCH] controlling order --- src/components/home/HomeMain.tsx | 16 ++++++++-------- src/components/ui/containers/Grid.tsx | 6 ++++-- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/components/home/HomeMain.tsx b/src/components/home/HomeMain.tsx index 81e925e..dc05acf 100644 --- a/src/components/home/HomeMain.tsx +++ b/src/components/home/HomeMain.tsx @@ -16,28 +16,28 @@ export default function HomeMain({ profile }: { profile: typeof userProfile }) { return ( - + - + - + - + - + - + - + - + diff --git a/src/components/ui/containers/Grid.tsx b/src/components/ui/containers/Grid.tsx index 41611fc..994e69e 100644 --- a/src/components/ui/containers/Grid.tsx +++ b/src/components/ui/containers/Grid.tsx @@ -26,11 +26,13 @@ export function Grid({ return (
{React.Children.map(children, (child: any, i) => { - const { props } = child; + const { + props: { className, ...props }, + } = child; return (