mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
make button text size variable
This commit is contained in:
@@ -14,6 +14,7 @@ export const Button = ({
|
|||||||
title = '',
|
title = '',
|
||||||
icon,
|
icon,
|
||||||
color = 'accent',
|
color = 'accent',
|
||||||
|
fontSize=SIZE.sm
|
||||||
}) => {
|
}) => {
|
||||||
const [state, dispatch] = useTracked();
|
const [state, dispatch] = useTracked();
|
||||||
const {colors} = state;
|
const {colors} = state;
|
||||||
@@ -48,7 +49,7 @@ export const Button = ({
|
|||||||
/>
|
/>
|
||||||
) : null}
|
) : null}
|
||||||
<Text
|
<Text
|
||||||
style={[styles.buttonText, {color: grayed ? colors.icon : 'white'}]}>
|
style={[styles.buttonText, {color: grayed ? colors.icon : 'white',fontSize:fontSize}]}>
|
||||||
{title}
|
{title}
|
||||||
</Text>
|
</Text>
|
||||||
</PressableButton>
|
</PressableButton>
|
||||||
@@ -67,7 +68,6 @@ const styles = StyleSheet.create({
|
|||||||
buttonText: {
|
buttonText: {
|
||||||
fontFamily: WEIGHT.medium,
|
fontFamily: WEIGHT.medium,
|
||||||
color: 'white',
|
color: 'white',
|
||||||
fontSize: SIZE.sm,
|
|
||||||
marginLeft: 5,
|
marginLeft: 5,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user