mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2025-08-03 01:53:18 +08:00
Fixed buttons
This commit is contained in:
parent
e67485d247
commit
0247afe553
3 changed files with 8 additions and 10 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue