From bb658f6f98f8295e00d5015c09297b671fb07957 Mon Sep 17 00:00:00 2001 From: Bruno Alla <alla.brunoo@gmail.com> Date: Mon, 1 Nov 2021 19:51:44 +0000 Subject: [PATCH] fix: warning about variable already defined --- gatsby-image-gallery/src/img-wrapper.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gatsby-image-gallery/src/img-wrapper.tsx b/gatsby-image-gallery/src/img-wrapper.tsx index dd630409..e0574f26 100644 --- a/gatsby-image-gallery/src/img-wrapper.tsx +++ b/gatsby-image-gallery/src/img-wrapper.tsx @@ -1,10 +1,10 @@ import styled from 'styled-components' -interface ImgWrapper { +interface ImgWrapperProps { margin: string } -const ImgWrapper = styled.div<ImgWrapper>` +const ImgWrapper = styled.div<ImgWrapperProps>` margin: ${(props) => props.margin}; `