mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2025-08-03 01:53:18 +08:00
Improved homepage
This commit is contained in:
parent
258435cbdd
commit
de97dca9d3
3 changed files with 61 additions and 50 deletions
|
@ -1,7 +1,7 @@
|
|||
import * as React from "react";
|
||||
import { Pressable, GestureResponderEvent } from "react-native";
|
||||
import styles from "../../styles";
|
||||
|
||||
import { colors } from "../../styles";
|
||||
export interface props {
|
||||
children: React.ReactNode;
|
||||
onPress: (event: GestureResponderEvent) => void;
|
||||
|
@ -10,6 +10,9 @@ export interface props {
|
|||
}
|
||||
|
||||
export default function Button({ disabled = false, ...props }: props) {
|
||||
if (!props.color) {
|
||||
props.color = colors.secondary_3;
|
||||
}
|
||||
return (
|
||||
<Pressable
|
||||
disabled={disabled}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue