fix(mobile): plan/hushåll/profil felhantering + streckkod pausar kamera (MIKRO 54)
CI / Typecheck, test & build (push) Failing after 42s
CI / Typecheck, test & build (push) Failing after 42s
This commit is contained in:
@@ -309,7 +309,7 @@ export default function PlanScreen() {
|
|||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<EmptyState text={t("plan.emptyDay")} />
|
<EmptyState text={t("plan.emptyDay")} />
|
||||||
{plan === null && (
|
{(plan === null || !hasEntries) && (
|
||||||
<Button
|
<Button
|
||||||
label={t("plan.generate")}
|
label={t("plan.generate")}
|
||||||
onPress={() => generate.mutate()}
|
onPress={() => generate.mutate()}
|
||||||
|
|||||||
@@ -111,6 +111,7 @@ export default function BarcodeScreen() {
|
|||||||
<View style={styles.container}>
|
<View style={styles.container}>
|
||||||
<CameraView
|
<CameraView
|
||||||
style={StyleSheet.absoluteFill}
|
style={StyleSheet.absoluteFill}
|
||||||
|
active={!busy}
|
||||||
barcodeScannerSettings={{ barcodeTypes: ["ean13", "ean8", "upc_a", "upc_e"] }}
|
barcodeScannerSettings={{ barcodeTypes: ["ean13", "ean8", "upc_a", "upc_e"] }}
|
||||||
onBarcodeScanned={(scan) => void onScanned(scan.data)}
|
onBarcodeScanned={(scan) => void onScanned(scan.data)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ export default function HouseholdScreen() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (me.isLoading || household.isLoading) return <LoadingView />;
|
if (me.isLoading || household.isLoading) return <LoadingView />;
|
||||||
|
if (me.isError) return <ErrorView onRetry={() => void me.refetch()} />;
|
||||||
if (!householdId) {
|
if (!householdId) {
|
||||||
return (
|
return (
|
||||||
<Screen>
|
<Screen>
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import {
|
|||||||
Body,
|
Body,
|
||||||
Button,
|
Button,
|
||||||
Card,
|
Card,
|
||||||
|
ErrorView,
|
||||||
Heading,
|
Heading,
|
||||||
LoadingView,
|
LoadingView,
|
||||||
Row,
|
Row,
|
||||||
@@ -107,6 +108,7 @@ export default function ProfileScreen() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (me.isLoading) return <LoadingView />;
|
if (me.isLoading) return <LoadingView />;
|
||||||
|
if (me.isError) return <ErrorView onRetry={() => void me.refetch()} />;
|
||||||
|
|
||||||
const consentMap = new Map((consents.data ?? []).map((c) => [c.kind, c.status]));
|
const consentMap = new Map((consents.data ?? []).map((c) => [c.kind, c.status]));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user