diff --git a/app/(application)/(user)/home.tsx b/app/(application)/(user)/home.tsx index b6c5996..7f93631 100644 --- a/app/(application)/(user)/home.tsx +++ b/app/(application)/(user)/home.tsx @@ -53,7 +53,7 @@ export default function Application() { } } - const onLoadDataJob = async () => { + const onLoadDataJob = async () => { try { const response = await apiJobGetAll({ category: "beranda", @@ -61,21 +61,14 @@ export default function Application() { const result = response.data .sort( (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); setListData(result); } catch (error) { console.log("[ERROR]", error); - } + } }; - - useFocusEffect( - useCallback(() => { - onLoadData(); - }, []) - ); - const checkVersion = async () => { try { const response = await apiVersion(); diff --git a/constants/constans-value.ts b/constants/constans-value.ts index d92897f..da76671 100644 --- a/constants/constans-value.ts +++ b/constants/constans-value.ts @@ -24,7 +24,7 @@ export { // OS Height 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 // Text Size diff --git a/ios/HIPMIBadungConnect.xcodeproj/project.pbxproj b/ios/HIPMIBadungConnect.xcodeproj/project.pbxproj index 8450924..060c306 100644 --- a/ios/HIPMIBadungConnect.xcodeproj/project.pbxproj +++ b/ios/HIPMIBadungConnect.xcodeproj/project.pbxproj @@ -178,6 +178,8 @@ E1F9AE3DCABE4A088A05E180 /* Remove signature files (Xcode workaround) */, 211F6E22A1B24524B67693F8 /* Remove signature files (Xcode workaround) */, 469F2CAA8928481CA86EB0F4 /* Remove signature files (Xcode workaround) */, + 0F9297956F4F4FC9881920F8 /* Remove signature files (Xcode workaround) */, + 058D2457CFA64FD9AC31C74F /* Remove signature files (Xcode workaround) */, ); buildRules = ( ); @@ -905,6 +907,40 @@ 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 */ /* Begin PBXSourcesBuildPhase section */