Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Commit

Permalink
Change folder dir for potential atomic design structures
Browse files Browse the repository at this point in the history
  • Loading branch information
hyochan committed Jan 31, 2021
1 parent 1b9632a commit 5a7a2dc
Show file tree
Hide file tree
Showing 16 changed files with 37 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import RootNavigator from './components/navigation/RootStackNavigator';
import RootNavigator from './components/navigations/RootStackNavigator';
import RootProvider from './providers';
import {initFbt} from './utils/fbt';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import {
createStackNavigator,
} from '@react-navigation/stack';

import Intro from '../screen/Intro';
import Intro from '../pages/Intro';
import {NavigationContainer} from '@react-navigation/native';
import React from 'react';
import Temp from '../screen/Temp';
import Temp from '../pages/Temp';
import {useTheme} from '../../providers/ThemeProvider';

export type RootStackParamList = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import styled, {css} from 'styled-components/native';

import Button from '../shared/Button';
import Button from '../templates/Button';
import {IC_MASK} from '../../utils/Icons';
import React from 'react';
import {RootStackNavigationProps} from '../navigation/RootStackNavigator';
import {RootStackNavigationProps} from '../navigations/RootStackNavigator';
import {User} from '../../types';
import {View} from 'react-native';
import {fbt} from 'fbt';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {
RootStackNavigationProps,
RootStackParamList,
} from '../../components/navigation/RootStackNavigator';
} from '../navigations/RootStackNavigator';

import Button from '../shared/Button';
import Button from '../templates/Button';
import React from 'react';
import {RouteProp} from '@react-navigation/core';
import styled from 'styled-components/native';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, {ReactElement} from 'react';
import {RenderAPI, act, fireEvent, render} from '@testing-library/react-native';
import {createTestElement, createTestProps} from '../../../../test/testUtils';

import Button from '../../shared/Button';
import Button from '../../templates/Button';
import Intro from '../Intro';
import {ThemeType} from '../../../providers/ThemeProvider';
import renderer from 'react-test-renderer';
Expand Down
File renamed without changes.
29 changes: 29 additions & 0 deletions src/components/ui/Typography.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import styled, {css} from 'styled-components/native';

export const Heading1 = styled.Text`
font-size: 26px;
text-align: center;
color: ${({theme}): string => theme.text};
font-family: futura;
font-weight: 700;
${({theme: {isDesktop}}) =>
isDesktop &&
css`
font-size: 40px;
`}
`;

export const Body1 = styled.Text`
font-size: 20px;
text-align: center;
color: ${({theme}): string => theme.text};
font-family: avenir;
font-weight: 800;
${({theme: {isDesktop}}) =>
isDesktop &&
css`
font-size: 28px;
`}
`;

0 comments on commit 5a7a2dc

Please sign in to comment.