Skip to content

Commit 0f34b5b

Browse files
committed
fix logic and update test snapshot
1 parent e490a07 commit 0f34b5b

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

src/components/views/auth/AuthPage.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,9 @@ export default class AuthPage extends React.PureComponent<React.PropsWithChildre
7474
};
7575

7676
let modalBlur;
77-
if (this.props.addBlur === false) {
77+
if (this.props.addBlur !== false) {
7878
modalBlur = <div className="mx_AuthPage_modalBlur" style={blurStyle} />;
79+
} else {
7980
delete modalContentStyle.background;
8081
}
8182

test/unit-tests/components/structures/auth/__snapshots__/CompleteSecurity-test.tsx.snap

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,9 @@ exports[`CompleteSecurity Allows verifying with another device if one is availab
99
class="mx_AuthPage_modal mx_AuthPage_modal_noBlur"
1010
style="position: relative;"
1111
>
12-
<div
13-
class="mx_AuthPage_modalBlur"
14-
style="position: absolute; top: 0px; right: 0px; bottom: 0px; left: 0px; filter: blur(40px);"
15-
/>
1612
<div
1713
class="mx_AuthPage_modalContent"
18-
style="display: flex; z-index: 1; background: rgba(255, 255, 255, 0.59); border-radius: 8px;"
14+
style="display: flex; z-index: 1; border-radius: 8px;"
1915
>
2016
<div
2117
class="mx_Dialog_border _glass_sepwu_8"
@@ -179,13 +175,9 @@ exports[`CompleteSecurity Allows verifying with recovery key if one is available
179175
class="mx_AuthPage_modal mx_AuthPage_modal_noBlur"
180176
style="position: relative;"
181177
>
182-
<div
183-
class="mx_AuthPage_modalBlur"
184-
style="position: absolute; top: 0px; right: 0px; bottom: 0px; left: 0px; filter: blur(40px);"
185-
/>
186178
<div
187179
class="mx_AuthPage_modalContent"
188-
style="display: flex; z-index: 1; background: rgba(255, 255, 255, 0.59); border-radius: 8px;"
180+
style="display: flex; z-index: 1; border-radius: 8px;"
189181
>
190182
<div
191183
class="mx_Dialog_border _glass_sepwu_8"

0 commit comments

Comments
 (0)