From 5e0d0646b5a0015bab4462f77b01dfede2275225 Mon Sep 17 00:00:00 2001 From: IshaVenikar Date: Wed, 21 Feb 2024 11:09:29 +0530 Subject: [PATCH] Make the component definitions consistent --- components/Accounts.tsx | 4 ++-- components/Dialog.tsx | 4 ++-- components/Grid.tsx | 2 +- components/NetworkDropdown.tsx | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/Accounts.tsx b/components/Accounts.tsx index b6b6b39..fa04c2a 100644 --- a/components/Accounts.tsx +++ b/components/Accounts.tsx @@ -8,13 +8,13 @@ import { addAccount } from '../utils/Accounts'; import styles from '../styles/stylesheet'; import HDPathDialog from './HDPathDialog'; -const Accounts: React.FC = ({ +const Accounts = ({ network, accounts, updateAccounts, currentIndex, updateIndex: updateId, -}) => { +}: AccountsProps) => { const navigation = useNavigation>(); const [expanded, setExpanded] = useState(false); diff --git a/components/Dialog.tsx b/components/Dialog.tsx index 9bef5e1..2867b74 100644 --- a/components/Dialog.tsx +++ b/components/Dialog.tsx @@ -12,11 +12,11 @@ type CustomDialogProps = { titleText?: string; }; -const DialogComponent: React.FC = ({ +const DialogComponent = ({ visible, hideDialog, contentText, -}) => { +}: CustomDialogProps) => { const words = contentText.split(' '); return ( diff --git a/components/Grid.tsx b/components/Grid.tsx index 752db7b..764e51c 100644 --- a/components/Grid.tsx +++ b/components/Grid.tsx @@ -5,7 +5,7 @@ import { Text } from 'react-native-paper'; import styles from '../styles/stylesheet'; import { GridViewProps } from '../types'; -const GridView: React.FC = ({ words }) => { +const GridView = ({ words }: GridViewProps) => { return ( {words.map((word, index) => ( diff --git a/components/NetworkDropdown.tsx b/components/NetworkDropdown.tsx index 37ad624..320eaae 100644 --- a/components/NetworkDropdown.tsx +++ b/components/NetworkDropdown.tsx @@ -5,7 +5,7 @@ import { List } from 'react-native-paper'; import { NetworkDropdownProps } from '../types'; import styles from '../styles/stylesheet'; -const NetworkDropdown: React.FC = ({ updateNetwork }) => { +const NetworkDropdown = ({ updateNetwork }: NetworkDropdownProps) => { const [expanded, setExpanded] = useState(false); const [selectedNetwork, setSelectedNetwork] = useState('Ethereum');