Compare commits
1 Commits
fix-bug/4-
...
fix-bug/5-
| Author | SHA1 | Date | |
|---|---|---|---|
| 836ef709d2 |
@@ -53,7 +53,7 @@ export default function Application() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const onLoadDataJob = async () => {
|
const onLoadDataJob = async () => {
|
||||||
try {
|
try {
|
||||||
const response = await apiJobGetAll({
|
const response = await apiJobGetAll({
|
||||||
category: "beranda",
|
category: "beranda",
|
||||||
@@ -61,21 +61,14 @@ export default function Application() {
|
|||||||
const result = response.data
|
const result = response.data
|
||||||
.sort(
|
.sort(
|
||||||
(a: any, b: any) =>
|
(a: any, b: any) =>
|
||||||
new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime()
|
new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime(),
|
||||||
)
|
)
|
||||||
.slice(0, 2);
|
.slice(0, 2);
|
||||||
setListData(result);
|
setListData(result);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log("[ERROR]", error);
|
console.log("[ERROR]", error);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
useFocusEffect(
|
|
||||||
useCallback(() => {
|
|
||||||
onLoadData();
|
|
||||||
}, [])
|
|
||||||
);
|
|
||||||
|
|
||||||
const checkVersion = async () => {
|
const checkVersion = async () => {
|
||||||
try {
|
try {
|
||||||
const response = await apiVersion();
|
const response = await apiVersion();
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ export {
|
|||||||
|
|
||||||
// OS Height
|
// OS Height
|
||||||
const OS_ANDROID_HEIGHT = 115
|
const OS_ANDROID_HEIGHT = 115
|
||||||
const OS_IOS_HEIGHT = 80
|
const OS_IOS_HEIGHT = 90
|
||||||
const OS_HEIGHT = Platform.OS === "ios" ? OS_IOS_HEIGHT : OS_ANDROID_HEIGHT
|
const OS_HEIGHT = Platform.OS === "ios" ? OS_IOS_HEIGHT : OS_ANDROID_HEIGHT
|
||||||
|
|
||||||
// Text Size
|
// Text Size
|
||||||
|
|||||||
@@ -178,6 +178,8 @@
|
|||||||
E1F9AE3DCABE4A088A05E180 /* Remove signature files (Xcode workaround) */,
|
E1F9AE3DCABE4A088A05E180 /* Remove signature files (Xcode workaround) */,
|
||||||
211F6E22A1B24524B67693F8 /* Remove signature files (Xcode workaround) */,
|
211F6E22A1B24524B67693F8 /* Remove signature files (Xcode workaround) */,
|
||||||
469F2CAA8928481CA86EB0F4 /* Remove signature files (Xcode workaround) */,
|
469F2CAA8928481CA86EB0F4 /* Remove signature files (Xcode workaround) */,
|
||||||
|
0F9297956F4F4FC9881920F8 /* Remove signature files (Xcode workaround) */,
|
||||||
|
058D2457CFA64FD9AC31C74F /* Remove signature files (Xcode workaround) */,
|
||||||
);
|
);
|
||||||
buildRules = (
|
buildRules = (
|
||||||
);
|
);
|
||||||
@@ -905,6 +907,40 @@
|
|||||||
rm -rf \"$CONFIGURATION_BUILD_DIR/MapLibre.xcframework-ios.signature\";
|
rm -rf \"$CONFIGURATION_BUILD_DIR/MapLibre.xcframework-ios.signature\";
|
||||||
";
|
";
|
||||||
};
|
};
|
||||||
|
0F9297956F4F4FC9881920F8 /* Remove signature files (Xcode workaround) */ = {
|
||||||
|
isa = PBXShellScriptBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
name = "Remove signature files (Xcode workaround)";
|
||||||
|
inputPaths = (
|
||||||
|
);
|
||||||
|
outputPaths = (
|
||||||
|
);
|
||||||
|
shellPath = /bin/sh;
|
||||||
|
shellScript = "
|
||||||
|
echo \"Remove signature files (Xcode workaround)\";
|
||||||
|
rm -rf \"$CONFIGURATION_BUILD_DIR/MapLibre.xcframework-ios.signature\";
|
||||||
|
";
|
||||||
|
};
|
||||||
|
058D2457CFA64FD9AC31C74F /* Remove signature files (Xcode workaround) */ = {
|
||||||
|
isa = PBXShellScriptBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
name = "Remove signature files (Xcode workaround)";
|
||||||
|
inputPaths = (
|
||||||
|
);
|
||||||
|
outputPaths = (
|
||||||
|
);
|
||||||
|
shellPath = /bin/sh;
|
||||||
|
shellScript = "
|
||||||
|
echo \"Remove signature files (Xcode workaround)\";
|
||||||
|
rm -rf \"$CONFIGURATION_BUILD_DIR/MapLibre.xcframework-ios.signature\";
|
||||||
|
";
|
||||||
|
};
|
||||||
/* End PBXShellScriptBuildPhase section */
|
/* End PBXShellScriptBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXSourcesBuildPhase section */
|
/* Begin PBXSourcesBuildPhase section */
|
||||||
|
|||||||
Reference in New Issue
Block a user