Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

add button to dialog header

ammarahm-eda98a81881070
diff --git a/apps/mobile/src/components/Dialog/DialogHeader.js b/apps/mobile/src/components/Dialog/DialogHeader.js
index 2f32d3641..ee6612c71 100644
--- a/apps/mobile/src/components/Dialog/DialogHeader.js
+++ b/apps/mobile/src/components/Dialog/DialogHeader.js
@@ -20,20 +20,31 @@ const DialogHeader = ({icon, title, paragraph, button}) => {
height: 50,
}}>
<View>
- <Heading size={SIZE.xl}>{title}</Heading>
+ <View
+ style={{
+ flexDirection: 'row',
+ justifyContent: 'space-between',
+ alignItems: 'center',
+ }}>
+ <Heading size={SIZE.xl}>{title}</Heading>
+
+ {button && (
+ <Button
+ onPress={button.onPress}
+ style={{
+ borderRadius: 100,
+ }}
+ title={button.title}
+ type="accent"
+ height={22}
+ />
+ )}
+ </View>
+
{paragraph ? (
<Paragraph color={colors.icon}>{paragraph}</Paragraph>
) : null}
</View>
-
- {button && (
- <Button
- onPress={button.onPress}
- title={button.title}
- type="grayBg"
- fontSize={SIZE.md}
- />
- )}
</View>
</>
);