Conform the style rules of GeneralUserSettingsTab.tsx
to the style guide (#10595)
* Nesting: `mx_GeneralUserSettingsTab_changePassword` * Nesting: `mx_Spinner` * Conform the style rules to the naming policy For elements inside "mx_GeneralUserSettingsTab_accountSection" and "mx_GeneralUserSettingsTab_discovery" * Conform `mx_GeneralUserSettingsTab_discovery_existing*` to the naming policy
This commit is contained in:
parent
e6421fded5
commit
cb779fe872
8 changed files with 66 additions and 60 deletions
|
@ -94,21 +94,21 @@ export class ExistingEmailAddress extends React.Component<IExistingEmailAddressP
|
|||
public render(): React.ReactNode {
|
||||
if (this.state.verifyRemove) {
|
||||
return (
|
||||
<div className="mx_GeneralUserSettingsTab_discovery_existing">
|
||||
<span className="mx_GeneralUserSettingsTab_discovery_existing_promptText">
|
||||
<div className="mx_GeneralUserSettingsTab_section--discovery_existing">
|
||||
<span className="mx_GeneralUserSettingsTab_section--discovery_existing_promptText">
|
||||
{_t("Remove %(email)s?", { email: this.props.email.address })}
|
||||
</span>
|
||||
<AccessibleButton
|
||||
onClick={this.onActuallyRemove}
|
||||
kind="danger_sm"
|
||||
className="mx_GeneralUserSettingsTab_discovery_existing_button"
|
||||
className="mx_GeneralUserSettingsTab_section--discovery_existing_button"
|
||||
>
|
||||
{_t("Remove")}
|
||||
</AccessibleButton>
|
||||
<AccessibleButton
|
||||
onClick={this.onDontRemove}
|
||||
kind="link_sm"
|
||||
className="mx_GeneralUserSettingsTab_discovery_existing_button"
|
||||
className="mx_GeneralUserSettingsTab_section--discovery_existing_button"
|
||||
>
|
||||
{_t("Cancel")}
|
||||
</AccessibleButton>
|
||||
|
@ -117,8 +117,10 @@ export class ExistingEmailAddress extends React.Component<IExistingEmailAddressP
|
|||
}
|
||||
|
||||
return (
|
||||
<div className="mx_GeneralUserSettingsTab_discovery_existing">
|
||||
<span className="mx_GeneralUserSettingsTab_discovery_existing_address">{this.props.email.address}</span>
|
||||
<div className="mx_GeneralUserSettingsTab_section--discovery_existing">
|
||||
<span className="mx_GeneralUserSettingsTab_section--discovery_existing_address">
|
||||
{this.props.email.address}
|
||||
</span>
|
||||
<AccessibleButton onClick={this.onRemove} kind="danger_sm">
|
||||
{_t("Remove")}
|
||||
</AccessibleButton>
|
||||
|
|
|
@ -89,21 +89,21 @@ export class ExistingPhoneNumber extends React.Component<IExistingPhoneNumberPro
|
|||
public render(): React.ReactNode {
|
||||
if (this.state.verifyRemove) {
|
||||
return (
|
||||
<div className="mx_GeneralUserSettingsTab_discovery_existing">
|
||||
<span className="mx_GeneralUserSettingsTab_discovery_existing_promptText">
|
||||
<div className="mx_GeneralUserSettingsTab_section--discovery_existing">
|
||||
<span className="mx_GeneralUserSettingsTab_section--discovery_existing_promptText">
|
||||
{_t("Remove %(phone)s?", { phone: this.props.msisdn.address })}
|
||||
</span>
|
||||
<AccessibleButton
|
||||
onClick={this.onActuallyRemove}
|
||||
kind="danger_sm"
|
||||
className="mx_GeneralUserSettingsTab_discovery_existing_button"
|
||||
className="mx_GeneralUserSettingsTab_section--discovery_existing_button"
|
||||
>
|
||||
{_t("Remove")}
|
||||
</AccessibleButton>
|
||||
<AccessibleButton
|
||||
onClick={this.onDontRemove}
|
||||
kind="link_sm"
|
||||
className="mx_GeneralUserSettingsTab_discovery_existing_button"
|
||||
className="mx_GeneralUserSettingsTab_section--discovery_existing_button"
|
||||
>
|
||||
{_t("Cancel")}
|
||||
</AccessibleButton>
|
||||
|
@ -112,8 +112,8 @@ export class ExistingPhoneNumber extends React.Component<IExistingPhoneNumberPro
|
|||
}
|
||||
|
||||
return (
|
||||
<div className="mx_GeneralUserSettingsTab_discovery_existing">
|
||||
<span className="mx_GeneralUserSettingsTab_discovery_existing_address">
|
||||
<div className="mx_GeneralUserSettingsTab_section--discovery_existing">
|
||||
<span className="mx_GeneralUserSettingsTab_section--discovery_existing_address">
|
||||
+{this.props.msisdn.address}
|
||||
</span>
|
||||
<AccessibleButton onClick={this.onRemove} kind="danger_sm">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue