From 96aca7a9ebf1d04f3c3b8bb1a9a71225328dd2bf Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Tue, 8 Aug 2023 10:55:30 +0300 Subject: [PATCH] refactor: convert Information Box to tsx --- .../{InformationBox.jsx => InformationBox.tsx} | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) rename src/components/{InformationBox.jsx => InformationBox.tsx} (66%) diff --git a/src/components/InformationBox.jsx b/src/components/InformationBox.tsx similarity index 66% rename from src/components/InformationBox.jsx rename to src/components/InformationBox.tsx index d3b626de..56959795 100644 --- a/src/components/InformationBox.jsx +++ b/src/components/InformationBox.tsx @@ -1,8 +1,14 @@ import { XStack } from 'tamagui' -import { Icon } from './Icon' -import { FormattedText } from './FormattedText' -const InformationBox = ({ icon, textElements }) => { +import Icon from './Icon' +import FormattedText, { TextElement } from './FormattedText' + +type InformationBoxProps = { + icon: string + textElements: TextElement[] +} + +const InformationBox = ({ icon, textElements }: InformationBoxProps) => { return (