Skip to content

Commit

Permalink
Merge pull request #4 from grupadotnet/secondary-button
Browse files Browse the repository at this point in the history
Finished secondary button
  • Loading branch information
TomChuck10 authored Jan 13, 2024
2 parents d1d11b2 + 6173927 commit cf6c3b9
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/components/SecondaryButton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import { Pressable, StyleSheet, Text } from 'react-native';

interface buttonProps {
onPress: any;
}

const SecondaryButton = (param: buttonProps) => {
return (
<Pressable onPress={param.onPress} style={styles.button}>
<Text style={styles.text}>Anuluj</Text>
</Pressable>
);
};

const styles = StyleSheet.create({
button: {
paddingVertical: 10,
paddingHorizontal: 50,
width: 279,
height: 36,
borderRadius: 10,
borderWidth: 1,
borderColor: '#D9D9D9',
gap: 10,
backgroundColor: '#FFFFFF',
},
text: {
color: '#7A7A7A',
textAlign: 'center',
fontWeight: '400',
fontSize: 12,
lineHeight: 15,
},
});

export default SecondaryButton;

0 comments on commit cf6c3b9

Please sign in to comment.