remove enabled props from SessionButton. Use disabled instead

pull/725/head
Audric Ackermann 5 years ago
parent 68e4f318f3
commit 29da7c2d53

@ -297,7 +297,7 @@ export class RegistrationTabs extends React.Component<{}, State> {
buttonType={SessionButtonType.Brand} buttonType={SessionButtonType.Brand}
buttonColor={SessionButtonColor.Green} buttonColor={SessionButtonColor.Green}
text={window.i18n('completeSignUp')} text={window.i18n('completeSignUp')}
enabled={enableCompleteSignUp} disabled={!enableCompleteSignUp}
/> />
</div> </div>
); );
@ -601,7 +601,7 @@ export class RegistrationTabs extends React.Component<{}, State> {
buttonType={SessionButtonType.Brand} buttonType={SessionButtonType.Brand}
buttonColor={SessionButtonColor.Green} buttonColor={SessionButtonColor.Green}
text={window.i18n('continueYourSession')} text={window.i18n('continueYourSession')}
enabled={enableContinue} disabled={!enableContinue}
/> />
); );
} }

@ -28,7 +28,6 @@ interface Props {
buttonType: SessionButtonType; buttonType: SessionButtonType;
buttonColor: SessionButtonColor; buttonColor: SessionButtonColor;
onClick: any; onClick: any;
enabled?: boolean;
} }
export class SessionButton extends React.PureComponent<Props> { export class SessionButton extends React.PureComponent<Props> {

Loading…
Cancel
Save