From cedf5d8fedc18b9829b88658128af43e513d91fe Mon Sep 17 00:00:00 2001 From: "mirlan.maksitaliev" Date: Thu, 11 Jun 2020 14:39:51 +0600 Subject: [PATCH] fix(ott-36): code review fix --- src/features/{Components => Common}/Arrows/index.tsx | 0 src/features/{Components => Common}/Arrows/stories.tsx | 2 +- src/features/{Components => Common}/Button/index.tsx | 0 src/features/{Components => Common}/Button/stories.tsx | 2 +- src/features/{Components => Common}/Button/styled.tsx | 0 src/features/{Components => Common}/Checkbox/index.tsx | 0 src/features/{Components => Common}/Checkbox/stories.tsx | 2 +- src/features/{Components => Common}/Checkbox/styled.tsx | 0 src/features/{Components => Common}/Input/index.tsx | 4 ++-- src/features/{Components => Common}/Input/stories.tsx | 2 +- src/features/{Components => Common}/Input/styled.tsx | 6 +++--- src/features/{Components => Common}/Radio/index.tsx | 0 src/features/{Components => Common}/Radio/stories.tsx | 2 +- src/features/{Components => Common}/Radio/styled.tsx | 0 src/features/{Components => Common}/index.tsx | 0 15 files changed, 10 insertions(+), 10 deletions(-) rename src/features/{Components => Common}/Arrows/index.tsx (100%) rename src/features/{Components => Common}/Arrows/stories.tsx (83%) rename src/features/{Components => Common}/Button/index.tsx (100%) rename src/features/{Components => Common}/Button/stories.tsx (83%) rename src/features/{Components => Common}/Button/styled.tsx (100%) rename src/features/{Components => Common}/Checkbox/index.tsx (100%) rename src/features/{Components => Common}/Checkbox/stories.tsx (90%) rename src/features/{Components => Common}/Checkbox/styled.tsx (100%) rename src/features/{Components => Common}/Input/index.tsx (96%) rename src/features/{Components => Common}/Input/stories.tsx (92%) rename src/features/{Components => Common}/Input/styled.tsx (90%) rename src/features/{Components => Common}/Radio/index.tsx (100%) rename src/features/{Components => Common}/Radio/stories.tsx (91%) rename src/features/{Components => Common}/Radio/styled.tsx (100%) rename src/features/{Components => Common}/index.tsx (100%) diff --git a/src/features/Components/Arrows/index.tsx b/src/features/Common/Arrows/index.tsx similarity index 100% rename from src/features/Components/Arrows/index.tsx rename to src/features/Common/Arrows/index.tsx diff --git a/src/features/Components/Arrows/stories.tsx b/src/features/Common/Arrows/stories.tsx similarity index 83% rename from src/features/Components/Arrows/stories.tsx rename to src/features/Common/Arrows/stories.tsx index fa8af4b3..f2e61f8a 100644 --- a/src/features/Components/Arrows/stories.tsx +++ b/src/features/Common/Arrows/stories.tsx @@ -1,6 +1,6 @@ import React from 'react' -import { ArrowLeft, ArrowRight } from 'features/Components' +import { ArrowLeft, ArrowRight } from 'features/Common' export default { component: ArrowLeft, diff --git a/src/features/Components/Button/index.tsx b/src/features/Common/Button/index.tsx similarity index 100% rename from src/features/Components/Button/index.tsx rename to src/features/Common/Button/index.tsx diff --git a/src/features/Components/Button/stories.tsx b/src/features/Common/Button/stories.tsx similarity index 83% rename from src/features/Components/Button/stories.tsx rename to src/features/Common/Button/stories.tsx index aa3c756a..0c58bfca 100644 --- a/src/features/Components/Button/stories.tsx +++ b/src/features/Common/Button/stories.tsx @@ -2,7 +2,7 @@ import React from 'react' import { action } from '@storybook/addon-actions' -import { ButtonOutline, ButtonSolid } from 'features/Components' +import { ButtonOutline, ButtonSolid } from 'features/Common' export default { title: 'Button', diff --git a/src/features/Components/Button/styled.tsx b/src/features/Common/Button/styled.tsx similarity index 100% rename from src/features/Components/Button/styled.tsx rename to src/features/Common/Button/styled.tsx diff --git a/src/features/Components/Checkbox/index.tsx b/src/features/Common/Checkbox/index.tsx similarity index 100% rename from src/features/Components/Checkbox/index.tsx rename to src/features/Common/Checkbox/index.tsx diff --git a/src/features/Components/Checkbox/stories.tsx b/src/features/Common/Checkbox/stories.tsx similarity index 90% rename from src/features/Components/Checkbox/stories.tsx rename to src/features/Common/Checkbox/stories.tsx index 1675a0fe..0721257d 100644 --- a/src/features/Components/Checkbox/stories.tsx +++ b/src/features/Common/Checkbox/stories.tsx @@ -1,6 +1,6 @@ import React from 'react' -import { Checkbox } from 'features/Components' +import { Checkbox } from 'features/Common' export default { component: Checkbox, diff --git a/src/features/Components/Checkbox/styled.tsx b/src/features/Common/Checkbox/styled.tsx similarity index 100% rename from src/features/Components/Checkbox/styled.tsx rename to src/features/Common/Checkbox/styled.tsx diff --git a/src/features/Components/Input/index.tsx b/src/features/Common/Input/index.tsx similarity index 96% rename from src/features/Components/Input/index.tsx rename to src/features/Common/Input/index.tsx index 32c294ca..55bbbc6b 100644 --- a/src/features/Components/Input/index.tsx +++ b/src/features/Common/Input/index.tsx @@ -28,7 +28,7 @@ export const Input = ({ labelWidth, maxLength, onChange, - px, + paddingX, required, type, value, @@ -36,7 +36,7 @@ export const Input = ({ }: TInput) => (