Skip to content

Commit

Permalink
feat(I18n): Do not copy proptypes from wrapped component (#1363)
Browse files Browse the repository at this point in the history
feat(I18n): Do not copy proptypes from wrapped component
  • Loading branch information
ptbrowne authored Jan 22, 2020
2 parents af2fadd + f5d84e5 commit 9e596e6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions react/I18n/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,6 @@ export const translate = () => WrappedComponent => {
}
Wrapper.displayName = `withI18n(${WrappedComponent.displayName ||
WrappedComponent.name})`
Wrapper.propTypes = {
//!TODO Remove this check after fixing https://github.com/cozy/cozy-drive/issues/1848
...(WrappedComponent ? WrappedComponent.propTypes : undefined)
}
return Wrapper
}

Expand Down

0 comments on commit 9e596e6

Please sign in to comment.