Skip to content

Commit aa5a3a3

Browse files
committed
Fixed issue with logout button not showing properly
1 parent b115b73 commit aa5a3a3

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/components/common/Button.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
import React from "react";
2+
import { CardSection } from "./";
23
import { Text, TouchableOpacity } from "react-native";
34

45
const Button = ({ onPress, children }) => {
56
const { buttonStyle, textStyle } = styles;
67
return (
7-
<TouchableOpacity onPress={onPress} style={buttonStyle}>
8-
<Text style={textStyle}>{children}</Text>
9-
</TouchableOpacity>
8+
<CardSection>
9+
<TouchableOpacity onPress={onPress} style={buttonStyle}>
10+
<Text style={textStyle}>{children}</Text>
11+
</TouchableOpacity>
12+
</CardSection>
1013
);
1114
};
1215

1316
const styles = {
1417
textStyle: {
1518
alignSelf: "center",
16-
color: "#007AFF",
19+
color: "#007aff",
1720
fontSize: 16,
1821
fontWeight: "600",
1922
paddingTop: 10,
@@ -22,10 +25,10 @@ const styles = {
2225
buttonStyle: {
2326
flex: 1,
2427
alignSelf: "stretch",
25-
backgroundColor: "#FFF",
28+
backgroundColor: "#fff",
2629
borderRadius: 5,
2730
borderWidth: 1,
28-
borderColor: "#007AFF",
31+
borderColor: "#007aff",
2932
marginLeft: 5,
3033
marginRight: 5
3134
}

0 commit comments

Comments
 (0)