Skip to content

Commit

Permalink
fix(HEADING): h6
Browse files Browse the repository at this point in the history
  • Loading branch information
zubaria1 committed Dec 23, 2020
1 parent 6ded711 commit 7b8d8d6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/layouts/SettingsPage/SettingsPageDesktop.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { H6, NavigationOptions, View } from '@bluebase/components';
import { Body1, NavigationOptions, View } from '@bluebase/components';
import { ScrollView, TextStyle, ViewStyle } from 'react-native';
import { Theme, resolveThunk, useFilter, useIntl, useStyles } from '@bluebase/core';

Expand Down Expand Up @@ -41,7 +41,7 @@ export const SettingsPageDesktop = (props: SettingsPageDesktopProps) => {
return (
<ScrollView>
<View style={styles.root}>
{title && <H6 style={styles.title}>{__(title)}</H6>}
{title && <Body1 style={styles.title}>{__(title)}</Body1>}
{filteredItems.map(item => (
<SettingsPageItemDesktop
key={item.name}
Expand Down
4 changes: 2 additions & 2 deletions src/layouts/SettingsPageItem/SettingsPageItemDesktop.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Body2, H6, View } from '@bluebase/components';
import { Body1, Body2, View } from '@bluebase/components';
import { Platform, TextStyle, ViewStyle } from 'react-native';
import { Theme, useComponent, useIntl, useStyles } from '@bluebase/core';

Expand Down Expand Up @@ -59,7 +59,7 @@ export const SettingsPageItemDesktop = (props: SettingsPageItemDesktopProps) =>

const titleNode =
typeof title === 'string' ? (
<H6 style={[styles.titleStyles, titleStyle]}>{__(title)}</H6>
<Body1 style={[styles.titleStyles, titleStyle]}>{__(title)}</Body1>
) : (
title
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Body2, H6, Noop } from '@bluebase/components';
import { Body1, Body2, Noop } from '@bluebase/components';

import { BlueBaseApp } from '@bluebase/core';
import DarkModeSetting from '../../../settings/DarkModeSetting';
Expand Down Expand Up @@ -51,7 +51,7 @@ describe('SettingsPageItemDesktop', () => {

await waitForElement(wrapper, SettingsPageItemDesktop);

expect(wrapper.find(H6).text()).toBe('settings');
expect(wrapper.find(Body1).text()).toBe('settings');
expect(wrapper.find(Body2).text()).toBe('desc');
});

Expand All @@ -72,7 +72,7 @@ describe('SettingsPageItemDesktop', () => {

await waitForElement(wrapper, SettingsPageItemDesktop);

expect(wrapper.find(H6).exists()).toBe(false);
expect(wrapper.find(Body1).exists()).toBe(false);
expect(wrapper.find(Body2).exists()).toBe(false);
});
});

0 comments on commit 7b8d8d6

Please sign in to comment.