feat: disabled 2fa feature (#631)

* feat: add dim and blur to unavailable 2fa

* feat: message over disabled 2FA

* feat: 2fa remove overlay and dimming

* fix: add newline to _ui,css

* fix: tsc errors

* Update app/assets/javascripts/preferences/panes/two-factor-auth/TwoFactorAuthView.tsx

Co-authored-by: Vardan Hakobyan <vardan_live@live.com>

* refactor: rename s to status

Co-authored-by: Vardan Hakobyan <vardan_live@live.com>
This commit is contained in:
Gorjan Petrovski
2021-09-09 16:28:37 +02:00
committed by GitHub
parent 1294b94117
commit 7b1499d75e
17 changed files with 123 additions and 98 deletions

View File

@@ -16,7 +16,9 @@ export const PreferencesGroup: FunctionComponent = ({ children }) => (
<div className="bg-default border-1 border-solid rounded border-gray-300 px-6 py-6 flex flex-col gap-2">
{Array.isArray(children)
? children
.filter((child) => child != undefined && child !== '')
.filter(
(child) => child != undefined && child !== '' && child !== false
)
.map((child, i, arr) => (
<>
{child}