change card

This commit is contained in:
Thomas Demirdjian
2025-12-01 15:07:46 +01:00
parent d7b14bd873
commit e96e4c263d
12 changed files with 389 additions and 36 deletions
+3 -8
View File
@@ -4,6 +4,7 @@ import numbro from "numbro";
import { Linking } from "react-native";
import { isTauri, isWeb } from "../hooks/useLayoutType";
import Palette from "../styles/Palette.js";
import * as StoreReview from "expo-store-review";
export const capitalize = (string) => {
return string.charAt(0).toUpperCase() + string.slice(1);
@@ -140,18 +141,12 @@ export const validateDate = (date = null) => {
};
export const onStoreReview = async () => {
let StoreReview;
if (!isWeb) {
import("react-native-store-review").then((module) => {
StoreReview = module;
if (await StoreReview.hasAction()) {
StoreReview.requestReview();
});
}
} else {
console.log("Store review not available on web");
return;
}
};