upd: refactor style

This commit is contained in:
2026-02-19 15:27:02 +08:00
parent 77f478b7ca
commit 6770d40b41
45 changed files with 195 additions and 136 deletions

View File

@@ -114,7 +114,7 @@ export default function EditBanner() {
};
return (
<SafeAreaView style={{ flex: 1, backgroundColor: colors.background }}>
<SafeAreaView style={[Styles.flex1, { backgroundColor: colors.background }]}>
<Stack.Screen
options={{
// headerLeft: () => (
@@ -156,7 +156,7 @@ export default function EditBanner() {
? selectedImage
: selectedImage.uri
}
style={{ resizeMode: "contain", width: "100%", height: 100 }}
style={[Styles.resizeContain, Styles.w100, { height: 100 }]}
/>
</Pressable>
) : (
@@ -165,7 +165,7 @@ export default function EditBanner() {
style={[Styles.wrapPaper, Styles.contentItemCenter]}
>
<View
style={{ justifyContent: "center", alignItems: "center" }}
style={[Styles.contentItemCenter]}
>
<Entypo name="image" size={50} color={"#aeaeae"} />
<Text style={[Styles.textInformation, Styles.mt05]}>

View File

@@ -96,7 +96,7 @@ export default function CreateBanner() {
};
return (
<SafeAreaView style={{ flex: 1, backgroundColor: colors.background }}>
<SafeAreaView style={[Styles.flex1, { backgroundColor: colors.background }]}>
<Stack.Screen
options={{
// headerLeft: () => (
@@ -142,7 +142,7 @@ export default function CreateBanner() {
<Pressable onPress={pickImageAsync}>
<Image
src={selectedImage}
style={{ resizeMode: "contain", width: "100%", height: 100 }}
style={[Styles.resizeContain, Styles.w100, { height: 100 }]}
/>
</Pressable>
) : (
@@ -151,7 +151,7 @@ export default function CreateBanner() {
style={[Styles.wrapPaper, Styles.contentItemCenter]}
>
<View
style={{ justifyContent: "center", alignItems: "center" }}
style={[Styles.contentItemCenter]}
>
<Entypo name="image" size={50} color={"#aeaeae"} />
<Text style={[Styles.textInformation, Styles.mt05]}>

View File

@@ -108,7 +108,7 @@ export default function BannerList() {
return (
<SafeAreaView style={{ flex: 1, backgroundColor: colors.background }}>
<SafeAreaView style={[Styles.flex1, { backgroundColor: colors.background }]}>
<Stack.Screen
options={{
// headerLeft: () => <ButtonBackHeader onPress={() => { router.back() }} />,
@@ -158,13 +158,12 @@ export default function BannerList() {
/>
}
title={index.title}
width={65}
/>
))}
</View>
:
<View style={[Styles.p15, Styles.mb100]}>
<Text style={[Styles.textDefault, { textAlign: 'center' }]}>Tidak ada data</Text>
<Text style={[Styles.textDefault, Styles.textCenter]}>Tidak ada data</Text>
</View>
}