Skip to content

Commit

Permalink
CreateSecretStorageDialog: remove unused prop hasCancel
Browse files Browse the repository at this point in the history
This is never set, so may as well remove
  • Loading branch information
richvdh committed Feb 5, 2025
1 parent bc604df commit 7e2e6d6
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ enum Phase {
const PASSWORD_MIN_SCORE = 4; // So secure, many characters, much complex, wow, etc, etc.

interface IProps {
hasCancel?: boolean;
forceReset?: boolean;
resetCrossSigning?: boolean;
onFinished(ok?: boolean): void;
Expand Down Expand Up @@ -84,7 +83,6 @@ interface IState {
*/
export default class CreateSecretStorageDialog extends React.PureComponent<IProps, IState> {
public static defaultProps: Partial<IProps> = {
hasCancel: true,
forceReset: false,
resetCrossSigning: false,
};
Expand Down Expand Up @@ -750,7 +748,7 @@ export default class CreateSecretStorageDialog extends React.PureComponent<IProp
top={this.topComponent}
title={this.titleForPhase(this.state.phase)}
titleClass={titleClass}
hasCancel={this.props.hasCancel && [Phase.Passphrase].includes(this.state.phase)}
hasCancel={false}
fixedWidth={false}
>
<div>{content}</div>
Expand Down

0 comments on commit 7e2e6d6

Please sign in to comment.