Fixed buttons

This commit is contained in:
Keannu Christian Bernasol 2023-07-17 22:54:06 +08:00
parent e67485d247
commit 0247afe553
3 changed files with 8 additions and 10 deletions

View file

@ -9,16 +9,12 @@ export interface props {
disabled?: boolean;
}
export default function Button({
disabled = false,
color = "rgba(52, 52, 52, 0.8)",
...props
}: props) {
export default function Button({ disabled = false, ...props }: props) {
return (
<Pressable
disabled={disabled}
onPress={props.onPress}
style={styles.button_template}
style={{ ...styles.button_template, ...{ backgroundColor: props.color } }}
>
{props.children}
</Pressable>