From 2972d9f76e5c4814ffeccabbee739ef22180eff0 Mon Sep 17 00:00:00 2001 From: alexsparkes Date: Sat, 23 Sep 2023 11:09:27 +0100 Subject: [PATCH] experimental: rework of widget visibility uI --- .../modals/main/settings/Header.jsx | 33 +++++++++++++++++-- src/modules/languages.json | 16 ++++----- 2 files changed, 39 insertions(+), 10 deletions(-) diff --git a/src/components/modals/main/settings/Header.jsx b/src/components/modals/main/settings/Header.jsx index 69d5207c..1d8a618d 100644 --- a/src/components/modals/main/settings/Header.jsx +++ b/src/components/modals/main/settings/Header.jsx @@ -2,7 +2,12 @@ import variables from 'modules/variables'; import { PureComponent } from 'react'; import PropTypes from 'prop-types'; -import { /*MdHelpOutline,*/ MdFlag, MdArrowBack } from 'react-icons/md'; +import { + /*MdHelpOutline,*/ MdFlag, + MdArrowBack, + MdOutlineVisibilityOff, + MdOutlineVisibility, +} from 'react-icons/md'; import Slider from './Slider'; import Switch from './Switch'; @@ -15,7 +20,7 @@ class Header extends PureComponent { render() { return ( <> -
+
{this.props.backButton ? (
) : null} {this.props.title} + {this.props.switch && ( + + )}
{/*