Skip to content

Commit

Permalink
Fixed issue with intl injecion PropTypes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Krulis committed Oct 22, 2017
1 parent 278f443 commit d69966d
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ npm-debug.log
prod/
package-lock.json

/run_server.bat
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ AttachedFilesTable.propTypes = {
downloadFile: PropTypes.func,
HeaderComponent: PropTypes.func.isRequired,
RowComponent: PropTypes.func.isRequired,
intl: PropTypes.shape({ formatMessage: PropTypes.func.isRequired }).isRequired
intl: PropTypes.shape({ locale: PropTypes.string.isRequired }).isRequired
};

export default injectIntl(AttachedFilesTable);
2 changes: 1 addition & 1 deletion src/components/Exercises/ExercisesList/ExercisesList.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const ExercisesList = ({ exercises = [], createActions, intl, ...rest }) =>
ExercisesList.propTypes = {
exercises: PropTypes.array,
createActions: PropTypes.func,
intl: PropTypes.shape({ formatMessage: PropTypes.func.isRequired }).isRequired
intl: PropTypes.shape({ locale: PropTypes.string.isRequired }).isRequired
};

export default injectIntl(ExercisesList);
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const ExercisesSimpleList = ({ exercises, createActions, intl, ...rest }) =>
ExercisesSimpleList.propTypes = {
exercises: PropTypes.array.isRequired,
createActions: PropTypes.func,
intl: PropTypes.shape({ formatMessage: PropTypes.func.isRequired }).isRequired
intl: PropTypes.shape({ locale: PropTypes.string.isRequired }).isRequired
};

export default injectIntl(ExercisesSimpleList);
2 changes: 1 addition & 1 deletion src/components/Instances/InstancesTable/InstancesTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const InstancesTable = ({ instances, links: { INSTANCE_URI_FACTORY }, intl }) =>
InstancesTable.propTypes = {
instances: PropTypes.array.isRequired,
links: PropTypes.object,
intl: PropTypes.shape({ formatMessage: PropTypes.func.isRequired }).isRequired
intl: PropTypes.shape({ locale: PropTypes.string.isRequired }).isRequired
};

export default injectIntl(withLinks(InstancesTable));
2 changes: 1 addition & 1 deletion src/components/Pipelines/PipelinesList/PipelinesList.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const PipelinesList = ({ pipelines = [], createActions, intl }) =>
PipelinesList.propTypes = {
pipelines: PropTypes.array,
createActions: PropTypes.func,
intl: PropTypes.shape({ formatMessage: PropTypes.func.isRequired }).isRequired
intl: PropTypes.shape({ locale: PropTypes.string.isRequired }).isRequired
};

export default injectIntl(PipelinesList);
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const PipelinesSimpleList = ({ pipelines, createActions, intl, ...rest }) =>
PipelinesSimpleList.propTypes = {
pipelines: PropTypes.array.isRequired,
createActions: PropTypes.func,
intl: PropTypes.shape({ formatMessage: PropTypes.func.isRequired }).isRequired
intl: PropTypes.shape({ locale: PropTypes.string.isRequired }).isRequired
};

export default injectIntl(PipelinesSimpleList);
2 changes: 1 addition & 1 deletion src/components/Users/UsersList/UsersList.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const UsersList = ({ users = [], createActions, intl, ...rest }) =>
UsersList.propTypes = {
users: PropTypes.array,
createActions: PropTypes.func,
intl: PropTypes.shape({ formatMessage: PropTypes.func.isRequired }).isRequired
intl: PropTypes.shape({ locale: PropTypes.string.isRequired }).isRequired
};

export default injectIntl(UsersList);
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ EditExerciseConfigTest.propTypes = {
pipelines: ImmutablePropTypes.map,
runtimeEnvironmentIndex: PropTypes.number.isRequired,
fetchVariables: PropTypes.func,
intl: PropTypes.shape({ formatMessage: PropTypes.func.isRequired }).isRequired
intl: PropTypes.shape({ locale: PropTypes.string.isRequired }).isRequired
};

export default injectIntl(EditExerciseConfigTest);
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ EditExerciseConfigVariable.propTypes = {
prefix: PropTypes.string.isRequired,
data: PropTypes.object.isRequired,
supplementaryFiles: ImmutablePropTypes.map,
intl: PropTypes.shape({ formatMessage: PropTypes.func.isRequired }).isRequired
intl: PropTypes.shape({ locale: PropTypes.string.isRequired }).isRequired
};

export default injectIntl(EditExerciseConfigVariable);
2 changes: 1 addition & 1 deletion src/components/forms/Fields/PipelineVariablesField.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ PipelineVariablesField.propTypes = {
]).isRequired,
variables: PropTypes.array,
supplementaryFiles: ImmutablePropTypes.map,
intl: PropTypes.shape({ formatMessage: PropTypes.func.isRequired }).isRequired
intl: PropTypes.shape({ locale: PropTypes.string.isRequired }).isRequired
};

export default injectIntl(PipelineVariablesField);
2 changes: 1 addition & 1 deletion src/components/forms/ForkPipelineForm/ForkPipelineForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ ForkPipelineForm.propTypes = {
push: PropTypes.func.isRequired,
links: PropTypes.object,
exercises: ImmutablePropTypes.map,
intl: PropTypes.shape({ formatMessage: PropTypes.func.isRequired }).isRequired
intl: PropTypes.shape({ locale: PropTypes.string.isRequired }).isRequired
};

const mapStateToProps = (state, { pipelineId, forkId }) => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/layout/Sidebar/Supervisor.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Supervisor.propTypes = {
isCollapsed: PropTypes.bool,
notifications: PropTypes.object,
links: PropTypes.object,
intl: PropTypes.shape({ formatMessage: PropTypes.func.isRequired }).isRequired
intl: PropTypes.shape({ locale: PropTypes.string.isRequired }).isRequired
};

export default injectIntl(withLinks(Supervisor));
2 changes: 1 addition & 1 deletion src/pages/AssignmentStats/AssignmentStats.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ AssignmentStats.propTypes = {
getStudents: PropTypes.func.isRequired,
getGroup: PropTypes.func.isRequired,
loadAsync: PropTypes.func.isRequired,
intl: PropTypes.shape({ formatMessage: PropTypes.func.isRequired }).isRequired
intl: PropTypes.shape({ locale: PropTypes.string.isRequired }).isRequired
};

export default connect(
Expand Down

0 comments on commit d69966d

Please sign in to comment.