diff --git a/app/(application)/announcement/[id].tsx b/app/(application)/announcement/[id].tsx index 1c62559..c6db8c2 100644 --- a/app/(application)/announcement/[id].tsx +++ b/app/(application)/announcement/[id].tsx @@ -252,7 +252,7 @@ export default function DetailAnnouncement() { {dataFile.map((item, index) => ( } title={item.name} - titleWeight="normal" /> ) }} diff --git a/app/(application)/project/index.tsx b/app/(application)/project/index.tsx index a923c9d..b23639e 100644 --- a/app/(application)/project/index.tsx +++ b/app/(application)/project/index.tsx @@ -319,6 +319,7 @@ export default function ListProject() { content="page" title={item.title} headerColor="primary" + titleTail={2} > diff --git a/components/AppHeader.tsx b/components/AppHeader.tsx index eba9a76..86c78cb 100644 --- a/components/AppHeader.tsx +++ b/components/AppHeader.tsx @@ -1,6 +1,5 @@ import Styles from '@/constants/Styles'; import { useTheme } from "@/providers/ThemeProvider"; -import { useRouter } from 'expo-router'; import { Platform, Text, View } from 'react-native'; import { useSafeAreaInsets } from 'react-native-safe-area-context'; import ButtonBackHeader from './buttonBackHeader'; @@ -15,13 +14,12 @@ type Props = { export default function AppHeader({ title, right, showBack = true, onPressLeft, left }: Props) { const insets = useSafeAreaInsets(); - const router = useRouter(); const { colors } = useTheme(); return ( - + {showBack ? ( ) : @@ -30,7 +28,9 @@ export default function AppHeader({ title, right, showBack = true, onPressLeft, )} - {title} + + {title ? title.charAt(0).toUpperCase() + title.slice(1) : ""} + {right} diff --git a/components/borderBottomItem.tsx b/components/borderBottomItem.tsx index c1f5926..2fa195a 100644 --- a/components/borderBottomItem.tsx +++ b/components/borderBottomItem.tsx @@ -48,7 +48,7 @@ export default function BorderBottomItem({ title, subtitle, icon, desc, onPress, {icon} - {title} + {title ? title.charAt(0).toUpperCase() + title.slice(1) : ""} { subtitle && typeof subtitle == "string" diff --git a/components/discussionItem.tsx b/components/discussionItem.tsx index a572f5b..921500a 100644 --- a/components/discussionItem.tsx +++ b/components/discussionItem.tsx @@ -18,7 +18,7 @@ export default function DiscussionItem({ title, user, date, onPress }: Props) { - {title} + {title?.charAt(0).toUpperCase() + title?.slice(1)} diff --git a/components/document/itemFile.tsx b/components/document/itemFile.tsx index 7515c23..18eb0ed 100644 --- a/components/document/itemFile.tsx +++ b/components/document/itemFile.tsx @@ -18,7 +18,7 @@ type Props = { export default function ItemFile({ category, checked, dateTime, title, onChecked, onPress, canChecked }: Props) { const { colors } = useTheme(); return ( - + { @@ -56,8 +56,8 @@ export default function ItemFile({ category, checked, dateTime, title, onChecked { checked - ? - : + ? + : } diff --git a/components/home/divisionHome.tsx b/components/home/divisionHome.tsx index 2dd955a..137509a 100644 --- a/components/home/divisionHome.tsx +++ b/components/home/divisionHome.tsx @@ -63,7 +63,7 @@ export default function DivisionHome({ refreshing }: { refreshing: boolean }) { { router.push(`/division/${item.id}`) }}> - {item.name} + {item.name?.charAt(0).toUpperCase() + item.name?.slice(1)} {item.jumlah} Kegiatan diff --git a/components/paperGridContent.tsx b/components/paperGridContent.tsx index 0efe6b8..2cf166d 100644 --- a/components/paperGridContent.tsx +++ b/components/paperGridContent.tsx @@ -35,7 +35,7 @@ export default function PaperGridContent({ content, children, title, headerColor imageStyle={{ borderTopLeftRadius: 5, borderTopRightRadius: 5 }} style={[Styles.headerPaperGrid, { backgroundColor: colors.primary }]} > - {title} + {title.charAt(0).toUpperCase() + title.slice(1)} ) }