diff --git a/components/Button.tsx b/components/Button.tsx index f05613396..e632b37f3 100644 --- a/components/Button.tsx +++ b/components/Button.tsx @@ -41,17 +41,17 @@ export const Button = forwardRef((props, ref) => }; const buttonView = ( - + <> {props.icon && } {props.title && {props.title}} - + ); return props.onPress ? ( ((props, ref) => {buttonView} ) : ( - buttonView + {buttonView} ); }); diff --git a/components/StyledButton.tsx b/components/StyledButton.tsx index 614ba33cd..961381941 100644 --- a/components/StyledButton.tsx +++ b/components/StyledButton.tsx @@ -11,12 +11,7 @@ interface StyledButtonProps { buttonStyle?: keyof typeof StyledButtonType; } -const StyledButton: FC = ({ - onPress, - text, - disabled = false, - buttonStyle = StyledButtonType.default -}) => { +const StyledButton: FC = ({ onPress, text, disabled = false, buttonStyle = StyledButtonType.default }) => { const { colors } = useTheme(); const stylesHook = StyleSheet.create({ buttonGrey: { @@ -26,8 +21,8 @@ const StyledButton: FC = ({ color: colors.buttonTextColor, }, container: { - opacity: disabled ? 0.5 : 1.0 - } + opacity: disabled ? 0.5 : 1.0, + }, }); const textStyles = () => { if (buttonStyle === StyledButtonType.grey) {