Swap AccessibleButton element types to match the props they provide
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
e8cfea7187
commit
7056915dca
4 changed files with 5 additions and 0 deletions
|
@ -237,6 +237,7 @@ export default class SoftLogout extends React.Component<IProps, IState> {
|
|||
/>
|
||||
<AccessibleButton
|
||||
onClick={this.onPasswordLogin}
|
||||
element="button"
|
||||
kind="primary"
|
||||
type="submit"
|
||||
disabled={this.state.busy}
|
||||
|
|
|
@ -135,6 +135,7 @@ export default class EditableItemList<P = {}> extends React.PureComponent<IProps
|
|||
/>
|
||||
<AccessibleButton
|
||||
onClick={this.onItemAdded}
|
||||
element="button"
|
||||
kind="primary"
|
||||
type="submit"
|
||||
disabled={!this.props.newItem}
|
||||
|
|
|
@ -407,6 +407,7 @@ export default class SetIdServer extends React.Component<IProps, IState> {
|
|||
forceValidity={this.state.error ? false : undefined}
|
||||
/>
|
||||
<AccessibleButton
|
||||
element="button"
|
||||
type="submit"
|
||||
kind="primary_sm"
|
||||
onClick={this.checkIdServer}
|
||||
|
|
|
@ -268,6 +268,7 @@ export default class MjolnirUserSettingsTab extends React.Component<{}, IState>
|
|||
onChange={this.onPersonalRuleChanged}
|
||||
/>
|
||||
<AccessibleButton
|
||||
element="button"
|
||||
type="submit"
|
||||
kind="primary"
|
||||
onClick={this.onAddPersonalRule}
|
||||
|
@ -296,6 +297,7 @@ export default class MjolnirUserSettingsTab extends React.Component<{}, IState>
|
|||
onChange={this.onNewListChanged}
|
||||
/>
|
||||
<AccessibleButton
|
||||
element="button"
|
||||
type="submit"
|
||||
kind="primary"
|
||||
onClick={this.onSubscribeList}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue