replaced BeneficiarySelectionContent from postOptionsModal with the new BeneficiarySelectionContent module

This commit is contained in:
Sadaqat Ali 2022-07-24 21:06:25 +05:00
parent 9443000049
commit e54746c577
2 changed files with 2 additions and 3 deletions

View File

@ -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) {

View File

@ -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 = [