Использование контекста вместо props в компонентах аутентификации

This commit is contained in:
SleepWalker
2016-03-13 10:36:31 +02:00
parent a88e958c7c
commit 518901fb57
11 changed files with 81 additions and 93 deletions

View File

@@ -14,7 +14,7 @@ export class Input extends Component {
id: PropTypes.string
}),
icon: PropTypes.string,
color: PropTypes.oneOf(['green', 'blue', 'red'])
color: PropTypes.oneOf(['green', 'blue', 'red', 'lightViolet', 'darkBlue'])
};
static contextTypes = {