amalia/03-jun-26 #55

Merged
amaliadwiy merged 361 commits from amalia/03-jun-26 into v-2.2.0 2026-06-08 11:32:17 +08:00
288 changed files with 16385 additions and 4608 deletions
Showing only changes of commit 7dc51bd2b9 - Show all commits

View File

@@ -108,7 +108,7 @@ export default function RootLayout() {
try {
if (title != "Komentar Baru") {
const hasil = await decryptToken(String(token?.current))
const response = await apiReadOneNotification({ user: hasil, id: id })
await apiReadOneNotification({ user: hasil, id: id })
}
pushToPage(category, idContent)
} catch (error) {

View File

@@ -66,7 +66,7 @@ export default function AuthProvider({ children }: { children: ReactNode }): Rea
return true
}
} else {
const register = await apiRegisteredToken({ user: hasil, token: "" })
await apiRegisteredToken({ user: hasil, token: "" })
await AsyncStorage.setItem('@token', token);
tokenRef.current = token;
router.replace('/home')
@@ -78,7 +78,7 @@ export default function AuthProvider({ children }: { children: ReactNode }): Rea
const hasil = await decryptToken(String(tokenRef.current))
// if (Platform.OS === 'android') {
const token = await getToken()
const response = await apiUnregisteredToken({ user: hasil, token: String(token) })
await apiUnregisteredToken({ user: hasil, token: String(token) })
// }else{
// const response = await apiUnregisteredToken({ user: hasil, token: "" })
// }