upd: calendar divisi

Deskripsi:
- ui list acara
- ui tambah acara
- ui history acara
- ui detail acara
- ui edit acara

No Issues
This commit is contained in:
amel
2025-03-12 12:33:38 +08:00
parent 514b1bce7d
commit 75901bceb3
11 changed files with 473 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
import Styles from "@/constants/Styles"
import { Text, View } from "react-native"
import { Pressable, Text, View } from "react-native"
type Props = {
category: 'purple' | 'orange'
@@ -7,17 +7,18 @@ type Props = {
user: string
jamAwal: string
jamAkhir: string
onPress?: () => void
}
export default function EventItem({ category, title, user, jamAwal, jamAkhir }: Props) {
export default function EventItem({ category, title, user, jamAwal, jamAkhir, onPress }: Props) {
return (
<View style={[Styles.itemEvent, { backgroundColor: category == 'orange' ? '#FED6C5' : '#D8D8F1' }]}>
<Pressable style={[Styles.itemEvent, { backgroundColor: category == 'orange' ? '#FED6C5' : '#D8D8F1' }]} onPress={onPress}>
<View style={[Styles.dividerEvent, { backgroundColor: category == 'orange' ? '#FB804C' : '#535FCA' }]} />
<View>
<Text>{jamAwal} - {jamAkhir}</Text>
<Text style={[Styles.textDefaultSemiBold, Styles.mv05]}>{title}</Text>
<Text>Dibuat oleh : {user}</Text>
</View>
</View>
</Pressable>
)
}