Browse Source

style naming

merge-requests/1/head
Eduard Makarov 2 years ago
parent
commit
456053d057
  1. 0
      src/assets/icons/arrow-back.svg
  2. 0
      src/assets/image/winners-cup.svg
  3. 2
      src/i18n/locales/en/index.ts
  4. 5
      src/i18n/locales/en/steps.translation.ts
  5. 2
      src/i18n/locales/ua/index.ts
  6. 0
      src/i18n/locales/ua/step.translation.ts
  7. 0
      src/module/root/atoms/premium-button.component.tsx
  8. 4
      src/module/root/components/content-onBoarding.component.tsx
  9. 4
      src/module/root/components/index.ts
  10. 0
      src/module/root/components/language-item.component.tsx
  11. 2
      src/module/root/config/data-onBoarding.ts
  12. 4
      src/module/root/screens/index.ts
  13. 6
      src/module/root/screens/language-select.screen.tsx
  14. 2
      src/module/root/screens/onBoarding.screen.tsx
  15. 2
      src/module/shared/components/buttons/goBack.component.tsx
  16. 4
      src/module/shared/components/buttons/index.ts
  17. 0
      src/module/shared/components/buttons/primary-btn.component.tsx
  18. 2
      src/module/shared/components/layout/index.ts
  19. 0
      src/module/shared/components/layout/screen-layout.component.tsx
  20. 2
      src/module/shared/enums/index.ts
  21. 0
      src/module/shared/enums/route-keys.ts
  22. 0
      src/module/shared/helpers/helper-height-view.ts
  23. 2
      src/module/shared/helpers/index.ts

0
src/assets/icons/arrowBack.svg → src/assets/icons/arrow-back.svg

Before

Width:  |  Height:  |  Size: 533 B

After

Width:  |  Height:  |  Size: 533 B

0
src/assets/image/winnersCup.svg → src/assets/image/winners-cup.svg

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

2
src/i18n/locales/en/index.ts

@ -1 +1 @@ @@ -1 +1 @@
export * from './stepLocale';
export * from './steps.translation';

5
src/i18n/locales/en/stepLocale.ts → src/i18n/locales/en/steps.translation.ts

@ -1,23 +1,20 @@ @@ -1,23 +1,20 @@
import {MainLocaleModule} from '../../types';
import {OnBoardingLocale} from './../../types/onBoarding';
import {OnBoardingLocale} from '../../types/onBoarding';
export const onBoardingTranslation: OnBoardingLocale.OnboardingSteps = {
step1: {
title: 'Welcome!',
description:
'Thank you for downloading. Now you are \n in the best game for the company \n or to play with your loved one',
textButton: 'Skip',
},
step2: {
title: 'Relax and enjoy \n the game!',
description:
'This game features 5 levels of "spiciness",\n some of which are divided into games for a \n couple or a company. All you have to do is \n add players and you can start playing.\n P.S. You can always create your own \n questions and tasks.',
textButton: 'Skip',
},
step3: {
title: 'Premium version!',
description:
'Provides unlimited access to Hard and \n Extreme packages. Enjoy intriguing questions \n and exciting action.',
textButton: 'Open now',
},
};

2
src/i18n/locales/ua/index.ts

@ -1 +1 @@ @@ -1 +1 @@
export * from './stepLocaleUa';
export * from './step.translation';

0
src/i18n/locales/ua/stepLocaleUa.ts → src/i18n/locales/ua/step.translation.ts

0
src/module/root/atoms/premiumGroupBtn.tsx → src/module/root/atoms/premium-button.component.tsx

4
src/module/root/components/contentOnboarding.tsx → src/module/root/components/content-onBoarding.component.tsx

@ -3,8 +3,8 @@ import {useTranslation} from 'react-i18next'; @@ -3,8 +3,8 @@ import {useTranslation} from 'react-i18next';
import {View, Text, StyleSheet} from 'react-native';
import {LangKeys} from '../../../i18n';
import {colors, heightPicture} from '../../shared';
import {GroupBtn} from '../atoms/premiumGroupBtn';
import {OnBoardData} from '../config/dataOnboarding';
import {GroupBtn} from '../atoms/premium-button.component';
import {OnBoardData} from '../config/data-onBoarding';
interface IProps {
currentIndex: number;
onPressItem: (data: any) => void;

4
src/module/root/components/index.ts

@ -1,2 +1,2 @@ @@ -1,2 +1,2 @@
export * from './contentOnboarding';
export * from './languageItem';
export * from './content-onBoarding.component';
export * from './language-item.component';

0
src/module/root/components/languageItem.tsx → src/module/root/components/language-item.component.tsx

2
src/module/root/config/dataOnboarding.ts → src/module/root/config/data-onBoarding.ts

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
import ImageHearts from '../../../assets/image/hearts.svg';
import ImageGlass from '../../../assets/image/glass.svg';
import ImageCup from '../../../assets/image/winnersCup.svg';
import ImageCup from '../../../assets/image/winners-cup.svg';
import {OnBoardingLocale} from '../../../i18n/types/onBoarding';
const translatePath = (
itemKey: keyof OnBoardingLocale.OnboardingSteps,

4
src/module/root/screens/index.ts

@ -1,2 +1,2 @@ @@ -1,2 +1,2 @@
export * from './languageSelect';
export * from './onBoarding';
export * from './language-select.screen';
export * from './onBoarding.screen';

6
src/module/root/screens/languageSelect.tsx → src/module/root/screens/language-select.screen.tsx

@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
import React, {FC} from 'react';
import {useTranslation} from 'react-i18next';
import {Button, Image, StyleSheet, Text, View} from 'react-native';
import FlagEng from '../../../assets/icons/ENG.svg';
import FlagEng from '../../../assets/icons/eng.svg';
import {LangKeys} from '../../../i18n';
import {IRouteParams, RouteKey, colors, ScreenLayout} from '../../shared/';
import {IRouteParams, RouteKey, colors, ScreenLayout} from '../../shared';
import {LanguageItem} from '../components';
const languageArr = [
{
name: 'Українська',
icon: <Image source={require('../../../assets/icons/UKR.png')} />,
icon: <Image source={require('../../../assets/icons/ukr.png')} />,
key: LangKeys.UA,
},
{

2
src/module/root/screens/onBoarding.tsx → src/module/root/screens/onBoarding.screen.tsx

@ -7,7 +7,7 @@ import { @@ -7,7 +7,7 @@ import {
colors,
ScreenLayout,
} from '../../shared';
import {ContentOnBoarding} from '../components/';
import {ContentOnBoarding} from '../components';
interface IProps extends IRouteParams {}
export const Onboarding: FC<IProps> = ({navigation}) => {
const [currentIndex, setCurrentIndex] = useState(0);

2
src/module/shared/components/buttons/goBack.tsx → src/module/shared/components/buttons/goBack.component.tsx

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
import React, {FC} from 'react';
import {Alert, TouchableOpacity, ViewStyle} from 'react-native';
import IconBack from '../../../../assets/icons/arrowBack.svg';
import IconBack from '../../../../assets/icons/arrow-back.svg';
import {colors} from '../../colors/colors';
interface IProps {
onPress: () => void;

4
src/module/shared/components/buttons/index.ts

@ -1,2 +1,2 @@ @@ -1,2 +1,2 @@
export * from './goBack';
export * from './primaryBtn';
export * from './goBack.component';
export * from './primary-btn.component';

0
src/module/shared/components/buttons/primaryBtn.tsx → src/module/shared/components/buttons/primary-btn.component.tsx

2
src/module/shared/components/layout/index.ts

@ -1 +1 @@ @@ -1 +1 @@
export * from './screenLayout';
export * from './screen-layout.component';

0
src/module/shared/components/layout/screenLayout.tsx → src/module/shared/components/layout/screen-layout.component.tsx

2
src/module/shared/enums/index.ts

@ -1 +1 @@ @@ -1 +1 @@
export * from './routeKeys';
export * from './route-keys';

0
src/module/shared/enums/routeKeys.ts → src/module/shared/enums/route-keys.ts

0
src/module/shared/helpers/helperHeightView.ts → src/module/shared/helpers/helper-height-view.ts

2
src/module/shared/helpers/index.ts

@ -1 +1 @@ @@ -1 +1 @@
export * from './helperHeightView';
export * from './helper-height-view';

Loading…
Cancel
Save