Skip to content

Commit 66046b2

Browse files
authored
Merge pull request #228 from DogusErdem/feat/notification-default-header-delete
feat: Deleted default header for notification
2 parents 94c5fe7 + 39cdb1c commit 66046b2

1 file changed

Lines changed: 6 additions & 11 deletions

File tree

src/core/notification/notification.tsx

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,15 @@ const NotificationProvider = forwardRef<NotificationContextType, NotificationPro
136136
{messageType?.(theme)[item?.type]?.icon}
137137
</View>
138138
<View style={styles.textsContainer}>
139+
{item?.header && (
139140
<Text
140-
style={[styles.headerText,
141-
{ ...typography.body.medium, color: theme.colors.neutral.lightBlack }]}
141+
style={{ ...typography.body.medium, color: theme.colors.neutral.lightBlack }}
142142
>
143-
{item?.header || item?.type}
143+
{item.header}
144144
</Text>
145+
)}
145146
<Text
146-
style={[styles.descText,
147-
{ ...typography.body.sregular, color: theme.colors.neutral.lightBlack }]}
147+
style={{ ...typography.body.sregular, color: theme.colors.neutral.lightBlack }}
148148
>
149149
{item?.message}
150150
</Text>
@@ -192,10 +192,5 @@ const styles = StyleSheet.create({
192192
buttonContainer: {
193193
flexDirection: 'row',
194194
},
195-
headerText: {
196-
},
197-
descText: {
198-
marginTop: 10,
199-
},
200-
textsContainer: { zIndex: 100, flex: 1 },
195+
textsContainer: { zIndex: 100, flex: 1, rowGap: 10 },
201196
});

0 commit comments

Comments
 (0)