From efa9664be644fd6d06fd63765517555c89621df7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20E=C3=A9n?= Date: Wed, 4 May 2022 17:10:06 +0200 Subject: [PATCH] Update types --- src/components/Perils/PerilList/PerilList.tsx | 6 +++--- src/components/Perils/types.ts | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/Perils/PerilList/PerilList.tsx b/src/components/Perils/PerilList/PerilList.tsx index 1d1ddca8..0e5aace2 100644 --- a/src/components/Perils/PerilList/PerilList.tsx +++ b/src/components/Perils/PerilList/PerilList.tsx @@ -5,7 +5,7 @@ import { PerilItem } from 'components/Perils/PerilItem/PerilItem' import { minimalColorComponentColors } from 'src/blocks/BaseBlockProps' import { Peril } from '../types' -interface Props { +type Props = { color: minimalColorComponentColors perils: ReadonlyArray setCurrentPeril: (index: number) => void @@ -40,12 +40,12 @@ const Wrapper = styled.div` } ` -export const PerilList: React.FC = ({ +export const PerilList = ({ color, perils, setCurrentPeril, setIsShowingPeril, -}) => ( +}: Props) => ( {perils.map((peril, perilIndex) => (