fix & featur
deskripsi: - fix component stack dan drawer - new page list path profile
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import React, { useRef } from "react";
|
||||
import {
|
||||
Animated,
|
||||
InteractionManager,
|
||||
PanResponder,
|
||||
StyleSheet,
|
||||
View,
|
||||
Animated,
|
||||
PanResponder,
|
||||
StyleSheet,
|
||||
View,
|
||||
InteractionManager,
|
||||
} from "react-native";
|
||||
|
||||
import { AccentColor, MainColor } from "@/constants/color-palet";
|
||||
@@ -86,7 +86,7 @@ DrawerCustomProps) {
|
||||
{...panResponder.panHandlers}
|
||||
>
|
||||
<View
|
||||
style={[styles.headerBar, { backgroundColor: MainColor.white_gray }]}
|
||||
style={[styles.headerBar, { backgroundColor: MainColor.white }]}
|
||||
/>
|
||||
|
||||
{children}
|
||||
@@ -152,7 +152,7 @@ const styles = StyleSheet.create({
|
||||
headerBar: {
|
||||
width: 40,
|
||||
height: 5,
|
||||
backgroundColor: MainColor.white_gray,
|
||||
backgroundColor: MainColor.white,
|
||||
borderRadius: 5,
|
||||
alignSelf: "center",
|
||||
marginVertical: 10,
|
||||
|
||||
@@ -19,7 +19,7 @@ const StackCustom: React.FC<StackProps> = ({
|
||||
children,
|
||||
align = "stretch",
|
||||
justify = "flex-start",
|
||||
gap = "xs",
|
||||
gap = "md",
|
||||
direction = "column",
|
||||
style,
|
||||
}) => {
|
||||
|
||||
@@ -89,19 +89,14 @@ const TextInputCustom = ({
|
||||
disabled && GStyles.disabledBox,
|
||||
]}
|
||||
>
|
||||
{iconLeft && (
|
||||
{/* {iconLeft && (
|
||||
<View style={GStyles.inputIcon}>{renderIcon(iconLeft)}</View>
|
||||
)}
|
||||
)} */}
|
||||
<RNTextInput
|
||||
style={[
|
||||
GStyles.inputText,
|
||||
{ color: fontColor },
|
||||
disabled
|
||||
? GStyles.inputTextDisabled // <-- custom style untuk text saat disabled
|
||||
: GStyles.inputText,
|
||||
disabled
|
||||
? GStyles.inputPlaceholderDisabled // <-- placeholder saat disabled
|
||||
: GStyles.inputPlaceholder,
|
||||
disabled && GStyles.inputPlaceholderDisabled, // <-- placeholder saat disabled
|
||||
]}
|
||||
editable={!disabled}
|
||||
secureTextEntry={secureTextEntry && !isPasswordVisible}
|
||||
|
||||
Reference in New Issue
Block a user