Skip to content

Commit 20a4111

Browse files
committed
small linter tweaks
1 parent dd4c0f2 commit 20a4111

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

src/components/views/dialogs/AddExistingToSpaceDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export const Entry: React.FC<{
6767
checked={checked}
6868
disabled={!onChange}
6969
aria-labelledby={id}
70-
></StyledCheckbox>
70+
/>
7171
</label>
7272
);
7373
};

src/components/views/dialogs/BulkRedactDialog.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,9 @@ const BulkRedactDialog: React.FC<Props> = (props) => {
113113
<div className="mx_Dialog_content" id="mx_Dialog_content">
114114
<p>{_t("user_info|redact|confirm_description_1", { count, user })}</p>
115115
<p>{_t("user_info|redact|confirm_description_2")}</p>
116-
<StyledCheckbox checked={keepStateEvents} onChange={(e) => setKeepStateEvents(e.target.checked)}>
116+
<StyledCheckbox description={_t("user_info|redact|confirm_keep_state_explainer")} checked={keepStateEvents} onChange={(e) => setKeepStateEvents(e.target.checked)}>
117117
{_t("user_info|redact|confirm_keep_state_label")}
118118
</StyledCheckbox>
119-
<div className="mx_BulkRedactDialog_checkboxMicrocopy">
120-
{_t("user_info|redact|confirm_keep_state_explainer")}
121-
</div>
122119
</div>
123120
<DialogButtons
124121
primaryButton={_t("user_info|redact|confirm_button", { count })}

src/components/views/dialogs/ManageRestrictedJoinRuleDialog.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const Entry: React.FC<{
4444
}
4545

4646
return (
47-
<label className="mx_ManageRestrictedJoinRuleDialog_entry">
47+
<div className="mx_ManageRestrictedJoinRuleDialog_entry">
4848
<StyledCheckbox
4949
onChange={onChange ? (e) => onChange(e.target.checked) : undefined}
5050
checked={checked}
@@ -56,7 +56,7 @@ const Entry: React.FC<{
5656
<span className="mx_ManageRestrictedJoinRuleDialog_entry_name">{room.name}</span>
5757
</div>
5858
</StyledCheckbox>
59-
</label>
59+
</div>
6060
);
6161
};
6262

0 commit comments

Comments
 (0)