upd: redesign

Deskripsi:
- fitur ganti mode tema
- penerapan tema pada semua fitur

NO Issues
This commit is contained in:
2026-02-09 17:49:25 +08:00
parent ddfee00410
commit d3802ca26c
157 changed files with 1278 additions and 692 deletions

View File

@@ -7,6 +7,7 @@ import { apiGetGroup, apiGetPosition, apiGetUser } from "@/lib/api"
import { setEntityFilterGroup } from "@/lib/filterSlice"
import { setMemberChoose } from "@/lib/memberChoose"
import { useAuthSession } from "@/providers/AuthProvider"
import { useTheme } from "@/providers/ThemeProvider"
import { AntDesign } from "@expo/vector-icons"
import { useEffect, useState } from "react"
import { Pressable, ScrollView, View } from "react-native"
@@ -33,6 +34,7 @@ export default function ModalSelect({ open, close, title, category, idParent, on
const entityUser = useSelector((state: any) => state.user)
const dispatch = useDispatch()
const entitiesGroup = useSelector((state: any) => state.filterGroup)
const { colors } = useTheme();
const [chooseValue, setChooseValue] = useState({ val: valChoose, label: '' })
const [data, setData] = useState<any>([])
const [search, setSearch] = useState('')
@@ -174,9 +176,9 @@ export default function ModalSelect({ open, close, title, category, idParent, on
{
(category == 'member')
?
selectMember.some((i: any) => i.idUser == item.id) && <AntDesign name="check" size={20} color={'black'} />
selectMember.some((i: any) => i.idUser == item.id) && <AntDesign name="check" size={20} color={colors.text} />
:
chooseValue.val == item.id && <AntDesign name="check" size={20} color={'black'} />
chooseValue.val == item.id && <AntDesign name="check" size={20} color={colors.text} />
}
</Pressable>
))
@@ -192,7 +194,7 @@ export default function ModalSelect({ open, close, title, category, idParent, on
}}>
<Text style={[chooseValue.val == item.val ? Styles.textDefaultSemiBold : Styles.textDefault]}>{item.label}</Text>
{
valChoose == item.val && <AntDesign name="check" size={20} color={'black'} />
valChoose == item.val && <AntDesign name="check" size={20} color={colors.text} />
}
</Pressable>
))