import { connect } from 'react-redux'; import React from 'react'; import { AppState } from 'reducers'; import { getCurrentScheduleType, ICurrentScheduleType } from 'selectors/schedule/fields'; import { WindowSizeField, TimeBountyField, WindowStartField, ScheduleGasPriceField, ScheduleGasLimitField, ScheduleDepositField } from '.'; import { ScheduleTimezoneDropDown, ScheduleTimestampField, ScheduleType, DataField } from 'components'; import './ScheduleFields.scss'; import translate from 'translations'; interface Props { schedulingType: ICurrentScheduleType; } class ScheduleFieldsClass extends React.Component { public render() { const { schedulingType } = this.props; return (
{translate('SCHEDULING_TITLE')}
{translate('SCHEDULING_DESCRIPTION')}

{schedulingType.value === 'time' && ( <>
)} {schedulingType.value === 'block' && ( <>
)}
); } } export const ScheduleFields = connect((state: AppState) => ({ schedulingType: getCurrentScheduleType(state) }))(ScheduleFieldsClass);