How to use the react-intl.injectIntl function in react-intl

To help you get started, we’ve selected a few react-intl examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github esteemapp / esteem-mobile / src / screens / settings / screen / settingsScreen.js View on Github external
title={intl.formatMessage({
              id: 'settings.send_feedback',
            })}
            text={intl.formatMessage({
              id: 'settings.send',
            })}
            type="button"
            actionType="feedback"
            handleOnButtonPress={handleOnButtonPress}
          />
        
      
    
  );
};
export default injectIntl(SettingsScreen);
/* eslint-enable */
github shakacode / react-webpack-rails-tutorial / client / app / bundles / comments / components / CommentBox / CommentBox.jsx View on Github external
isSaving={data.get('isSaving')}
          error={data.get('submitCommentError')}
          actions={actions}
          cssTransitionGroupClassNames={cssTransitionGroupClassNames}
        />
        
      
    );
  }
}

export default injectIntl(CommentBox);
github osmlab / maproulette3 / src / components / AdminPane / Manage / InspectTask / InspectTask.js View on Github external
{this.props.loading && }
                
              
            
          
        }

        
      
    )
  }
}

export default WithCurrentProject(
  WithCurrentChallenge(
    WithCurrentTask(injectIntl(InspectTask))
  )
)
github cerner / terra-core / packages / terra-paginator / src / ControlledPaginator.jsx View on Github external
)
        }
      
    );

    return reducedView;
  }

  render() {
    return ;
  }
}

Paginator.propTypes = propTypes;

export default injectIntl(Paginator);
github esteemapp / esteem-surfer / app / components / Vesting.js View on Github external
}
}

PowerDownCls.defaultProps = {
  accounts: []
};

PowerDownCls.propTypes = {
  dynamicProps: PropTypes.instanceOf(Object).isRequired,
  accounts: PropTypes.arrayOf(PropTypes.object),
  history: PropTypes.instanceOf(Object).isRequired,
  match: PropTypes.instanceOf(Object).isRequired,
  intl: PropTypes.instanceOf(Object).isRequired
};

const PowerDown = injectIntl(PowerDownCls);
export { PowerDown };
github digibib / ls.ext / redef / patron-client / src / frontend / components / FormInputFieldContainer.js View on Github external
fieldType: PropTypes.string.isRequired,
  hasFieldLabel: PropTypes.bool,
  fieldHeaderType: PropTypes.string.isRequired,
  isFieldHeaderOverLabel: PropTypes.bool,
  fieldMessage: PropTypes.object.isRequired,
  getFieldValidator: PropTypes.func,
  containerTag: PropTypes.string.isRequired,
  containerProps: PropTypes.object.isRequired,
  headerTag: PropTypes.string,
  headerMessage: PropTypes.object,
  formName: PropTypes.string.isRequired,
  intl: intlShape.isRequired,
  placeholder: PropTypes.object
}

export default injectIntl(FormInputFieldContainer)
github choerodon / choerodon-front-devops / devops / src / app / devops / containers / project / instances / components / PodStatus / PodStatus.js View on Github external
stroke="#0bc2a8"
        strokeDasharray={`${correct}, 10000`}
      />
      
    
  );
  return <div>{circle}</div>;
}

PodStatus.propTypes = {
  dataSource: PropTypes.object.isRequired,
};

export default injectIntl(PodStatus);
github opencollective / opencollective-frontend / components / contribute-cards / ContributeTier.js View on Github external
minimumAmount: PropTypes.number,
    amount: PropTypes.number,
    maxQuantity: PropTypes.number,
    stats: PropTypes.shape({
      totalRecurringDonations: PropTypes.number,
      totalDonated: PropTypes.number,
      contributors: PropTypes.object,
      availableQuantity: PropTypes.number,
    }).isRequired,
    contributors: PropTypes.arrayOf(PropTypes.object),
  }),
  /** @ignore */
  intl: PropTypes.object.isRequired,
};

export default injectIntl(ContributeTier);
github Waiviogit / waivio / src / investarena / components / DealsPage / OpenDeals / OpenDeal / OpenDeal.js View on Github external
{modalSL}
                  {prices}
                  {pnlValue}
                  {modalCloseDeal}
                
              
            
          
        );
    }
  } else return null;
};

OpenDeal.propTypes = propTypes;

export default injectIntl(OpenDeal);