From 0a881d6f6f1c87efb1a5330499b676d9991461c2 Mon Sep 17 00:00:00 2001 From: grafixeyehero Date: Mon, 9 May 2022 20:11:47 +0300 Subject: [PATCH] use camelCase for props --- .../dashboard/users/AccessContainer.tsx | 32 ++++++------- src/components/pages/NewUserPage.tsx | 32 ++++++------- .../pages/UserLibraryAccessPage.tsx | 48 +++++++++---------- 3 files changed, 56 insertions(+), 56 deletions(-) diff --git a/src/components/dashboard/users/AccessContainer.tsx b/src/components/dashboard/users/AccessContainer.tsx index 7c3cda360e..5c0d6341b7 100644 --- a/src/components/dashboard/users/AccessContainer.tsx +++ b/src/components/dashboard/users/AccessContainer.tsx @@ -3,26 +3,26 @@ import globalize from '../../../scripts/globalize'; import CheckBoxElement from './CheckBoxElement'; type IProps = { - ContainerClassName?: string; - HeaderTitle?: string; - CheckBoxClassName?: string; - CheckBoxTitle?: string; - ListContainerClassName?: string; - AccessClassName?: string; - ListTitle?: string; - Description?: string; + containerClassName?: string; + headerTitle?: string; + checkBoxClassName?: string; + checkBoxTitle?: string; + listContainerClassName?: string; + accessClassName?: string; + listTitle?: string; + description?: string; children?: React.ReactNode } -const AccessContainer: FunctionComponent = ({ContainerClassName, HeaderTitle, CheckBoxClassName, CheckBoxTitle, ListContainerClassName, AccessClassName, ListTitle, Description, children }: IProps) => { +const AccessContainer: FunctionComponent = ({containerClassName, headerTitle, checkBoxClassName, checkBoxTitle, listContainerClassName, accessClassName, listTitle, description, children }: IProps) => { return ( -
-

{globalize.translate(HeaderTitle)}

- -
-
+
+

{globalize.translate(headerTitle)}

+ +
+

- {globalize.translate(ListTitle)} + {globalize.translate(listTitle)}

= ({ContainerClassName, HeaderT
- {globalize.translate(Description)} + {globalize.translate(description)}
diff --git a/src/components/pages/NewUserPage.tsx b/src/components/pages/NewUserPage.tsx index 9642e29856..bd8dc289c5 100644 --- a/src/components/pages/NewUserPage.tsx +++ b/src/components/pages/NewUserPage.tsx @@ -199,14 +199,14 @@ const NewUserPage: FunctionComponent = () => { />
{mediaFoldersItems.map(Item => ( { {channelsItems.map(Item => ( {
{mediaFoldersItems.map(Item => ( { {channelsItems.map(Item => ( { {devicesItems.map(Item => (