From cf97c77d24611a66a161c5bd55205fd80fd601b8 Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Mon, 2 Nov 2020 20:46:47 +0500 Subject: [PATCH] make button text size variable --- apps/mobile/src/components/Button/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/mobile/src/components/Button/index.js b/apps/mobile/src/components/Button/index.js index ce82f6203..98295d90c 100644 --- a/apps/mobile/src/components/Button/index.js +++ b/apps/mobile/src/components/Button/index.js @@ -14,6 +14,7 @@ export const Button = ({ title = '', icon, color = 'accent', + fontSize=SIZE.sm }) => { const [state, dispatch] = useTracked(); const {colors} = state; @@ -48,7 +49,7 @@ export const Button = ({ /> ) : null} + style={[styles.buttonText, {color: grayed ? colors.icon : 'white',fontSize:fontSize}]}> {title} @@ -67,7 +68,6 @@ const styles = StyleSheet.create({ buttonText: { fontFamily: WEIGHT.medium, color: 'white', - fontSize: SIZE.sm, marginLeft: 5, }, });