From e54746c577cdb2e1d62ddef1c53ec152abbb7a97 Mon Sep 17 00:00:00 2001 From: Sadaqat Ali Date: Sun, 24 Jul 2022 21:06:25 +0500 Subject: [PATCH] replaced BeneficiarySelectionContent from postOptionsModal with the new BeneficiarySelectionContent module --- .../beneficiarySelectionContent.tsx | 2 +- src/screens/editor/children/postOptionsModal.tsx | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/beneficiarySelectionContent/beneficiarySelectionContent.tsx b/src/components/beneficiarySelectionContent/beneficiarySelectionContent.tsx index cf7e039ab..f0144771d 100644 --- a/src/components/beneficiarySelectionContent/beneficiarySelectionContent.tsx +++ b/src/components/beneficiarySelectionContent/beneficiarySelectionContent.tsx @@ -75,7 +75,7 @@ const BeneficiarySelectionContent = ({ const readPowerDownBeneficiaries = () => { const tempBeneficiaries = [ { account: username, weight: 10000, autoPowerUp: false }, - ...powerDownBeneficiaries, + ...powerDownBeneficiaries as Beneficiary[], ]; if (isArray(tempBeneficiaries) && tempBeneficiaries.length > 0) { diff --git a/src/screens/editor/children/postOptionsModal.tsx b/src/screens/editor/children/postOptionsModal.tsx index beedcf6e9..96da79723 100644 --- a/src/screens/editor/children/postOptionsModal.tsx +++ b/src/screens/editor/children/postOptionsModal.tsx @@ -2,12 +2,11 @@ import React, { forwardRef, useEffect, useImperativeHandle, useState } from 'rea import { useIntl } from 'react-intl'; import { View } from 'react-native'; -import { DateTimePicker, MainButton, Modal, SettingsItem } from '../../../components'; +import { BeneficiarySelectionContent, DateTimePicker, MainButton, Modal, SettingsItem } from '../../../components'; import styles from './postOptionsModalStyles'; import ThumbSelectionContent from './thumbSelectionContent'; import {View as AnimatedView} from 'react-native-animatable'; import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view'; -import BeneficiarySelectionContent from './beneficiarySelectionContent'; import EStyleSheet from 'react-native-extended-stylesheet'; const REWARD_TYPES = [