Skip to content

Commit 232c4bd

Browse files
committed
fix: NotificationListItem
1 parent 6f6ac2c commit 232c4bd

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import styled from 'styled-components/native';
55
import { View, TouchableOpacity } from 'react-native';
66
import { Icon } from 'react-native-elements';
77

8-
import { colors, fonts, normalize } from 'config';
8+
import { colors, styledFonts, normalize } from 'config';
99

1010
type Props = {
1111
notification: Object,
@@ -15,7 +15,7 @@ type Props = {
1515

1616
const NotificationListItemContainer = styled.View`
1717
border-bottom-color: ${colors.greyLight};
18-
border-bottom-width: 1px;
18+
border-bottom-width: 1;
1919
`;
2020

2121
const Wrapper = styled.View`
@@ -37,7 +37,7 @@ const TitleContainer = styled.View`
3737

3838
const 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-
5957
export 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

Comments
 (0)