Skip to content

Commit

Permalink
docs: Add missing proptypes
Browse files Browse the repository at this point in the history
  • Loading branch information
doubleface committed Jun 9, 2022
1 parent ea18b54 commit 752449d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion packages/cozy-harvest-lib/src/components/OAuthWindow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,11 @@ OAuthWindow.propTypes = {
an account id */
onCancel: PropTypes.func,
/** The app we want to redirect the user on, after the OAuth flow. It used by the stack */
redirectSlug: PropTypes.string
redirectSlug: PropTypes.string,
/** Is it a reconnection or not */
reconnect: PropTypes.bool,
/** Existing account */
account: PropTypes.object
}

export default translate()(withClient(OAuthWindow))
4 changes: 3 additions & 1 deletion packages/cozy-harvest-lib/src/components/TriggerManager.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,9 @@ DumbTriggerManager.propTypes = {
flow: PropTypes.object,
flowState: PropTypes.object,
// Used to inject a component around OAuthForm, and so customize the UI from the app
OAuthFormWrapperComp: PropTypes.node
OAuthFormWrapperComp: PropTypes.node,
/** Is it a reconnection or not */
reconnect: PropTypes.bool,
}

const TriggerManager = compose(
Expand Down

0 comments on commit 752449d

Please sign in to comment.