import React from 'react'; import { connect } from 'react-redux'; import translate from 'translations'; import { AppState } from 'features/reducers'; import { scheduleSelectors } from 'features/schedule'; import { ScheduleTimezoneDropDown, ScheduleTimestampField, ScheduleType, DataField } from 'components'; import { WindowSizeField, TimeBountyField, WindowStartField, ScheduleGasPriceField, ScheduleGasLimitField, ScheduleDepositField } from '.'; import './ScheduleFields.scss'; interface Props { schedulingType: scheduleSelectors.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: scheduleSelectors.getCurrentScheduleType(state) }))(ScheduleFieldsClass);