You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Doc the default params / guestUsername props
This commit is contained in:
@@ -35,10 +35,16 @@ module.exports = React.createClass({
|
|||||||
displayName: 'RegistrationForm',
|
displayName: 'RegistrationForm',
|
||||||
|
|
||||||
propTypes: {
|
propTypes: {
|
||||||
|
// Values pre-filled in the input boxes when the component loads
|
||||||
defaultEmail: React.PropTypes.string,
|
defaultEmail: React.PropTypes.string,
|
||||||
defaultUsername: React.PropTypes.string,
|
defaultUsername: React.PropTypes.string,
|
||||||
defaultPassword: 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,
|
guestUsername: React.PropTypes.string,
|
||||||
|
|
||||||
showEmail: React.PropTypes.bool,
|
showEmail: React.PropTypes.bool,
|
||||||
minPasswordLength: React.PropTypes.number,
|
minPasswordLength: React.PropTypes.number,
|
||||||
onError: React.PropTypes.func,
|
onError: React.PropTypes.func,
|
||||||
|
|||||||
Reference in New Issue
Block a user