From 9e16959afe2124eb2263989ada1ff981ac85883a Mon Sep 17 00:00:00 2001 From: ym-project Date: Sat, 27 Mar 2021 16:56:14 +0800 Subject: [PATCH 01/18] Update ru-RU.json --- lang/ru-RU.json | 1 + 1 file changed, 1 insertion(+) diff --git a/lang/ru-RU.json b/lang/ru-RU.json index e9b7f43e..3a3ca66e 100644 --- a/lang/ru-RU.json +++ b/lang/ru-RU.json @@ -5,6 +5,7 @@ "label.administrator": "Администратор", "label.all": "Все", "label.all-websites": "Все сайты", + "label.all-events": "Все события", "label.back": "Назад", "label.cancel": "Отменить", "label.change-password": "Изменить пароль", From 1a61622064a38d31bfede591e82dcf98d975804b Mon Sep 17 00:00:00 2001 From: Alexandr Loskutov Date: Sat, 27 Mar 2021 23:58:44 +0200 Subject: [PATCH 02/18] Update uk-UA.json --- lang/uk-UA.json | 1 + 1 file changed, 1 insertion(+) diff --git a/lang/uk-UA.json b/lang/uk-UA.json index c691f103..e907347e 100644 --- a/lang/uk-UA.json +++ b/lang/uk-UA.json @@ -5,6 +5,7 @@ "label.administrator": "Адміністратор", "label.all": "Всі", "label.all-websites": "Всі сайти", + "label.all-events": "Всі події", "label.back": "Назад", "label.cancel": "Відмінити", "label.change-password": "Змінити пароль", From 4e4ae0a7d05e1952508f26f739fc5fc758c55845 Mon Sep 17 00:00:00 2001 From: Kipras Melnikovas Date: Sun, 28 Mar 2021 20:07:09 +0300 Subject: [PATCH 03/18] Toggle the checkbox when clicking on the label Pretty sure the `user-select: none` could be employed in other places aswell Signed-off-by: Kipras Melnikovas --- components/common/Checkbox.js | 6 ++++-- components/common/Checkbox.module.css | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/components/common/Checkbox.js b/components/common/Checkbox.js index 67eea80d..9b76e805 100644 --- a/components/common/Checkbox.js +++ b/components/common/Checkbox.js @@ -7,12 +7,14 @@ import styles from './Checkbox.module.css'; function Checkbox({ name, value, label, onChange }) { const ref = useRef(); + const onClick = () => ref.current.click(); + return (
-
ref.current.click()}> +
{value && } size="small" />}
-
diff --git a/components/forms/WebsiteEditForm.js b/components/forms/WebsiteEditForm.js index 4bc19a2f..0be48561 100644 --- a/components/forms/WebsiteEditForm.js +++ b/components/forms/WebsiteEditForm.js @@ -77,7 +77,7 @@ export default function WebsiteEditForm({ values, onSave, onClose }) {
- +