Skip to content

Commit b9170cb

Browse files
committed
refactor(repository-list-item): Replace styledFonts with fonts
1 parent e4dfe08 commit b9170cb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/components/repository-list-item.component.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import styled from 'styled-components/native';
33
import { ListItem, Icon } from 'react-native-elements';
44

55
import { emojifyText, abbreviateNumber } from 'utils';
6-
import { colors, languageColors, styledFonts, normalize } from 'config';
6+
import { colors, languageColors, fonts, normalize } from 'config';
77

88
type Props = {
99
repository: Object,
@@ -32,15 +32,15 @@ const ColoredText = styled.Text`
3232
`;
3333

3434
const TitleText = ColoredText.extend`
35-
font-family: ${styledFonts.fontPrimarySemiBold};
35+
${fonts.fontPrimarySemiBold};
3636
`;
3737

3838
const PrivateIconContainer = styled.View`
3939
margin-left: 6;
4040
`;
4141

4242
const DescriptionText = ColoredText.extend`
43-
font-family: ${styledFonts.fontPrimaryLight};
43+
${fonts.fontPrimaryLight};
4444
`;
4545

4646
const ExtraInfoWrapper = styled.View`
@@ -54,7 +54,7 @@ const ExtraInfoText = styled.Text`
5454
padding-left: 3;
5555
padding-top: 2;
5656
margin-right: 15;
57-
font-family: ${styledFonts.fontPrimary};
57+
font-family: ${fonts.fontPrimary};
5858
font-size: ${normalize(10)};
5959
`;
6060

@@ -117,7 +117,7 @@ const renderTitle = (repository, showFullName) => (
117117
const Repository = styled(ListItem).attrs({
118118
titleStyle: {
119119
color: colors.primaryDark,
120-
fontFamily: styledFonts.fontPrimarySemiBold,
120+
fontFamily: fonts.fontPrimarySemiBold.fontFamily,
121121
},
122122
underlayColor: colors.greyLight,
123123
containerStyle: {

0 commit comments

Comments
 (0)