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}
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}
/>
);
}

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

Loading…
Cancel
Save