API Job
Add: - api-client/api-job: kumpulan fetch api Fix: - UI beranda , status sudah terintergrasi dengan API - UI detail status, detail utama sudah terintergrasi dengan API - Search pada beranda sudah terintegrasi - Edit sudah terintergrasi ### No Issue
This commit is contained in:
@@ -4,17 +4,33 @@ import { Image } from "expo-image";
|
||||
import { StyleSheet } from "react-native";
|
||||
import ClickableCustom from "../Clickable/ClickableCustom";
|
||||
import { router } from "expo-router";
|
||||
import API_STRORAGE from "@/constants/base-url-api-strorage";
|
||||
|
||||
export default function DummyLandscapeImage({height, unClickPath}: {height?: number, unClickPath?: boolean}) {
|
||||
export default function DummyLandscapeImage({
|
||||
height,
|
||||
unClickPath,
|
||||
imageId,
|
||||
}: {
|
||||
height?: number;
|
||||
unClickPath?: boolean;
|
||||
imageId?: string;
|
||||
}) {
|
||||
return (
|
||||
<ClickableCustom
|
||||
onPress={() => {
|
||||
if (!unClickPath) {
|
||||
router.push("/(application)/(image)/preview-image/1");
|
||||
router.push(`/(application)/(image)/preview-image/${imageId}`);
|
||||
}
|
||||
}}
|
||||
>
|
||||
<Image source={DUMMY_IMAGE.background} style={[styles.backgroundImage, {height: height || 200}]} />
|
||||
<Image
|
||||
source={
|
||||
imageId
|
||||
? { uri: API_STRORAGE.GET({ fileId: imageId }) }
|
||||
: DUMMY_IMAGE.dummy_image
|
||||
}
|
||||
style={[styles.backgroundImage, { height: height || 200 }]}
|
||||
/>
|
||||
</ClickableCustom>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@ interface SearchInputProps {
|
||||
iconRight?: React.ReactNode;
|
||||
containerStyle?: StyleProp<ViewStyle>;
|
||||
style?: StyleProp<TextStyle>;
|
||||
onChangeText?: (value: string) => void;
|
||||
}
|
||||
export default function SearchInput({
|
||||
placeholder,
|
||||
@@ -19,6 +20,7 @@ export default function SearchInput({
|
||||
iconRight,
|
||||
containerStyle,
|
||||
style,
|
||||
onChangeText,
|
||||
...props
|
||||
}: SearchInputProps) {
|
||||
return (
|
||||
@@ -30,6 +32,7 @@ export default function SearchInput({
|
||||
color={MainColor.placeholder}
|
||||
/>
|
||||
}
|
||||
onChangeText={onChangeText}
|
||||
placeholder={placeholder}
|
||||
borderRadius={50}
|
||||
containerStyle={[containerStyle, { marginBottom: 0 }]}
|
||||
|
||||
Reference in New Issue
Block a user