Skip to content

Commit 5ffe818

Browse files
author
Artur Bien
committed
refactor: move components to /components folder
1 parent 9eb56da commit 5ffe818

File tree

124 files changed

+140
-140
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+140
-140
lines changed

src/AppBar/AppBar.spec.tsx renamed to src/components/AppBar/AppBar.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { render, fireEvent } from '@testing-library/react-native';
33
import { testId } from '../Panel/Panel';
4-
import { AppBar, Text } from '..';
4+
import { AppBar, Text } from '../..';
55

66
describe('<AppBar />', () => {
77
it('should render children', () => {
File renamed without changes.

src/AppBar/AppBarBackAction.tsx renamed to src/components/AppBar/AppBarBackAction.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
2-
import type { $RemoveChildren } from '../types';
2+
import type { $RemoveChildren } from '../../types';
33

4-
import { Button, ChevronIcon } from '..';
4+
import { Button, ChevronIcon } from '../..';
55

66
type Props = $RemoveChildren<typeof Button>;
77

src/AppBar/AppBarContent.tsx renamed to src/components/AppBar/AppBarContent.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import {
88
View,
99
ViewStyle,
1010
} from 'react-native';
11-
import type { $RemoveChildren } from '../types';
11+
import type { $RemoveChildren } from '../../types';
1212

13-
import { Text } from '..';
13+
import { Text } from '../..';
1414

1515
type Props = $RemoveChildren<typeof View> & {
1616
title: React.ReactNode;
File renamed without changes.

src/Button/Button.spec.tsx renamed to src/components/Button/Button.spec.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React from 'react';
22
import { render, fireEvent } from '@testing-library/react-native';
3-
import type { Sizes } from '../types';
4-
import { blockSizes } from '../common/styles';
3+
import type { Sizes } from '../../types';
4+
import { blockSizes } from '../../styles/styles';
55
import { testId } from './Button';
6-
import { Button, Text } from '..';
6+
import { Button, Text } from '../..';
77

88
const noop = () => {};
99

src/Button/Button.tsx renamed to src/components/Button/Button.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import {
88
StyleProp,
99
ViewStyle,
1010
} from 'react-native';
11-
import type { Sizes } from '../types';
12-
import { ThemeContext } from '../common/theming/Theme';
13-
import { blockSizes } from '../common/styles';
11+
import type { Sizes } from '../../types';
12+
import { ThemeContext } from '../../styles/theming/Theme';
13+
import { blockSizes } from '../../styles/styles';
1414

15-
import { Text } from '..';
15+
import { Text } from '../..';
1616

1717
export const testId = 'button';
1818

File renamed without changes.

src/Card/Card.spec.tsx renamed to src/components/Card/Card.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { render } from '@testing-library/react-native';
33

4-
import { Card, Text } from '..';
4+
import { Card, Text } from '../..';
55

66
describe('<Card />', () => {
77
it('should render children', () => {

src/Card/Card.tsx renamed to src/components/Card/Card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useContext } from 'react';
22
import { StyleProp, StyleSheet, ViewStyle, View } from 'react-native';
3-
import { ThemeContext } from '../common/theming/Theme';
3+
import { ThemeContext } from '../../styles/theming/Theme';
44

55
import CardContent from './CardContent';
66

0 commit comments

Comments
 (0)