diff --git a/src/components/ConfirmationDialog.js b/src/components/ConfirmationDialog.js index c0ec355..b84fab0 100644 --- a/src/components/ConfirmationDialog.js +++ b/src/components/ConfirmationDialog.js @@ -28,7 +28,7 @@ const ConfirmationDialog = ({ handleConfirmation, documents, loading, - concentText = 'Share my documents with the provider for processing my application', + consentText = 'Share my documents with the provider for processing my application', }) => { // Function to call the parent's function const sendCloseDialog = () => { @@ -73,7 +73,7 @@ const ConfirmationDialog = ({ - {concentText} + {consentText} {loading ? ( diff --git a/src/components/common/BenefitCard.js b/src/components/common/BenefitCard.js index aff292e..20420c4 100644 --- a/src/components/common/BenefitCard.js +++ b/src/components/common/BenefitCard.js @@ -24,7 +24,7 @@ const BenefitCard = ({item, navigation}) => { {item?.title} - {item?.description} + {item?.provider_name} {/* diff --git a/src/components/common/TextInput/Password.js b/src/components/common/TextInput/Password.js index 96a7d33..757a6ff 100644 --- a/src/components/common/TextInput/Password.js +++ b/src/components/common/TextInput/Password.js @@ -30,7 +30,7 @@ const PasswordInput = ({ secureTextEntry={showPassword} right={ setShowPassword(!showPassword)} /> } diff --git a/src/components/common/inputs/Searchbar.js b/src/components/common/inputs/Searchbar.js index 645328b..85a7649 100644 --- a/src/components/common/inputs/Searchbar.js +++ b/src/components/common/inputs/Searchbar.js @@ -1,11 +1,14 @@ import * as React from 'react'; import {StyleSheet, View, TextInput} from 'react-native'; import {IconButton} from 'react-native-paper'; -import Icon from 'react-native-vector-icons/MaterialIcons'; // Import the icon library -const Searchbar = ({onSearch}) => { +const Searchbar = ({onSearch, value}) => { const [searchQuery, setSearchQuery] = React.useState(''); + React.useEffect(() => { + setSearchQuery(value); + }, [value]); + return ( diff --git a/src/components/common/layout/SearchHeader.js b/src/components/common/layout/SearchHeader.js index af19fd7..c65eb3a 100644 --- a/src/components/common/layout/SearchHeader.js +++ b/src/components/common/layout/SearchHeader.js @@ -3,10 +3,14 @@ import React from 'react'; import FilterDialog from '../../FilterDialog'; import Searchbar from '../inputs/Searchbar'; -const SearchHeader = ({onSearch, inputs, onFilter}) => { +const SearchHeader = ({onSearch, searchValue, inputs, onFilter}) => { return ( - + ); diff --git a/src/screens/auth/Login.js b/src/screens/auth/Login.js index dcb3c3f..d03c23a 100644 --- a/src/screens/auth/Login.js +++ b/src/screens/auth/Login.js @@ -43,7 +43,7 @@ const Login = () => { }; if (!username) { - setError('Enter Username '); + setError('Enter Username'); clearError(); return; } @@ -106,7 +106,7 @@ const Login = () => { /> { closeDialog={setDialogVisible} handleConfirmation={handleCofirmation} documents={documents} - concentText="Please provide your consent to share the following with Fast Pass" + consentText="Please provide your consent to share the following with Fast Pass" /> ); diff --git a/src/screens/auth/Splash.js b/src/screens/auth/Splash.js index 6b5b578..add504a 100644 --- a/src/screens/auth/Splash.js +++ b/src/screens/auth/Splash.js @@ -33,7 +33,7 @@ const Splash = () => { getValue={setSelectedLanguage} />