Skip to content

Commit

Permalink
refactor: remove empty styled component
Browse files Browse the repository at this point in the history
  • Loading branch information
chennara committed Nov 10, 2023
1 parent 1a606f0 commit 1667333
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/_routing/_components/RootStackNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ export const RootStackNavigator = () => {
<RootStack.Screen component={Error} name="Error" options={{ gestureEnabled: false }} />
<RootStack.Screen component={Search} name="Search" />
</RootStack.Group>

<RootStack.Screen
component={About}
name="About"
Expand Down
4 changes: 2 additions & 2 deletions src/onboarding/Onboarding.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { t } from 'i18next';

import { Counter } from '../_assets/images';
import { Analytics, SafeAreaView, Typography } from '../_components';
import { Analytics, Button, SafeAreaView, Typography } from '../_components';
import { ConfigUrl } from '../_config';
import { useStackNavigation, useToggle } from '../_hooks';
import { StorageKey } from '../_models';
Expand Down Expand Up @@ -44,7 +44,7 @@ const Onboarding = () => {
/>
</Styled.TopContainer>
<Styled.BottomContainer>
<Styled.ConfirmButton disabled={!isChecked} label={t('ONBOARDING.CONFIRM')} onPress={onPress} />
<Button disabled={!isChecked} label={t('ONBOARDING.CONFIRM')} onPress={onPress} />
</Styled.BottomContainer>
</SafeAreaView>
</>
Expand Down
5 changes: 1 addition & 4 deletions src/onboarding/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,9 @@ export const ConfirmViewContainer = styled.View`
`;

export const BottomContainer = styled.View`
padding-horizontal: 16px;
padding-bottom: 16px;
padding: 16px;
`;

export const LinkButton = styled(Button)`
margin: 0 5px;
`;

export const ConfirmButton = styled(Button)``;

0 comments on commit 1667333

Please sign in to comment.