remove enabled props from SessionButton. Use disabled instead

This commit is contained in:
Audric Ackermann 2020-01-17 17:14:01 +11:00
parent 68e4f318f3
commit 29da7c2d53
2 changed files with 2 additions and 3 deletions

View file

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

View file

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