From 5c879d786e1e8b51ea24b6f8f3a6278d79717800 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 7 Jul 2016 11:23:08 +0100 Subject: [PATCH] Doc the default params / guestUsername props --- src/components/views/login/RegistrationForm.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/views/login/RegistrationForm.js b/src/components/views/login/RegistrationForm.js index 17827d5b46..ad3526c598 100644 --- a/src/components/views/login/RegistrationForm.js +++ b/src/components/views/login/RegistrationForm.js @@ -35,10 +35,16 @@ module.exports = React.createClass({ displayName: 'RegistrationForm', propTypes: { + // Values pre-filled in the input boxes when the component loads defaultEmail: React.PropTypes.string, defaultUsername: React.PropTypes.string, defaultPassword: React.PropTypes.string, + + // A username that will be used if no username is enetered. + // Specifying this param will also warn the user that enetering + // a different username will cause a fresh account to be generated. guestUsername: React.PropTypes.string, + showEmail: React.PropTypes.bool, minPasswordLength: React.PropTypes.number, onError: React.PropTypes.func,