@@ -5,7 +5,7 @@ import styled from 'styled-components/native';
55import { View , TouchableOpacity } from 'react-native' ;
66import { Icon } from 'react-native-elements' ;
77
8- import { colors , fonts , normalize } from 'config' ;
8+ import { colors , styledFonts , normalize } from 'config' ;
99
1010type Props = {
1111 notification : Object ,
@@ -15,7 +15,7 @@ type Props = {
1515
1616const NotificationListItemContainer = styled . View `
1717 border-bottom-color: ${ colors . greyLight } ;
18- border-bottom-width: 1px ;
18+ border-bottom-width: 1 ;
1919` ;
2020
2121const Wrapper = styled . View `
@@ -37,7 +37,7 @@ const TitleContainer = styled.View`
3737
3838const Title = styled . Text `
3939 color: ${ colors . black } ;
40- ${ { ... fonts . fontPrimary } } ;
40+ font-family: ${ styledFonts . fontPrimary } ;
4141 font-size: ${ normalize ( 12 ) } ;
4242 margin-left: 10px;
4343` ;
@@ -54,8 +54,6 @@ const IconStyled = styled(Icon).attrs({
5454 type : 'octicon' ,
5555} ) `` ;
5656
57- const CheckIcon = styled ( IconStyled ) . attrs ( { name : 'check' } ) `` ;
58-
5957export class NotificationListItem extends Component {
6058 props : Props ;
6159
@@ -103,7 +101,7 @@ export class NotificationListItem extends Component {
103101 onPress = { ( ) => iconAction ( notification . id ) }
104102 nativeId = "notification-unread"
105103 >
106- < CheckIcon />
104+ < IconStyled name = "check" />
107105 </ CheckButton >
108106 ) }
109107 </ Wrapper >
0 commit comments