|
|
@ -4,18 +4,33 @@ import colors from "../config/colors"; |
|
|
|
import { dimensions } from "../config/dimensions"; |
|
|
|
import { Ionicons } from "@expo/vector-icons"; |
|
|
|
|
|
|
|
function Btn({ label, onPress, bgColor, txtColor, style={} }) { |
|
|
|
function Btn({ label, onPress, bgColor, txtColor, style = {} }) { |
|
|
|
return ( |
|
|
|
<TouchableOpacity style={{marginTop: 15}} onPress={onPress}> |
|
|
|
<TouchableOpacity style={{ marginTop: 15 }} onPress={onPress}> |
|
|
|
<View |
|
|
|
style={[style, { |
|
|
|
paddingHorizontal: 40, |
|
|
|
paddingVertical: 7, |
|
|
|
backgroundColor: bgColor, |
|
|
|
borderRadius: 6, |
|
|
|
}]} |
|
|
|
style={[ |
|
|
|
style, |
|
|
|
{ |
|
|
|
paddingHorizontal: 40, |
|
|
|
paddingVertical: 7, |
|
|
|
backgroundColor: bgColor, |
|
|
|
borderRadius: 6, |
|
|
|
height: 48, |
|
|
|
flexDirection: "row", |
|
|
|
}, |
|
|
|
]} |
|
|
|
> |
|
|
|
<Text style={{ color: txtColor, fontWeight: "bold", textTransform: "uppercase" }}>{label}</Text> |
|
|
|
<Text |
|
|
|
style={{ |
|
|
|
color: txtColor, |
|
|
|
fontWeight: "bold", |
|
|
|
textTransform: "uppercase", |
|
|
|
textAlignVertical: "center", |
|
|
|
alignSelf: "center", |
|
|
|
}} |
|
|
|
> |
|
|
|
{label} |
|
|
|
</Text> |
|
|
|
</View> |
|
|
|
</TouchableOpacity> |
|
|
|
); |
|
|
@ -70,10 +85,10 @@ export default function ConfirmationModal({ |
|
|
|
justifyContent: "flex-end", |
|
|
|
marginTop: 24, |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|
{onDecline && declineLabel && ( |
|
|
|
<Btn |
|
|
|
style={{marginRight: 16}} |
|
|
|
style={{ marginRight: 16 }} |
|
|
|
label={declineLabel} |
|
|
|
onPress={onDecline} |
|
|
|
bgColor={colors.secondary} |
|
|
|