mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
remove enabled props from SessionButton. Use disabled instead
This commit is contained in:
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…
Reference in a new issue