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")} />
|
||||
{plan === null && (
|
||||
{(plan === null || !hasEntries) && (
|
||||
<Button
|
||||
label={t("plan.generate")}
|
||||
onPress={() => generate.mutate()}
|
||||
|
||||
@@ -111,6 +111,7 @@ export default function BarcodeScreen() {
|
||||
<View style={styles.container}>
|
||||
<CameraView
|
||||
style={StyleSheet.absoluteFill}
|
||||
active={!busy}
|
||||
barcodeScannerSettings={{ barcodeTypes: ["ean13", "ean8", "upc_a", "upc_e"] }}
|
||||
onBarcodeScanned={(scan) => void onScanned(scan.data)}
|
||||
/>
|
||||
|
||||
@@ -42,6 +42,7 @@ export default function HouseholdScreen() {
|
||||
});
|
||||
|
||||
if (me.isLoading || household.isLoading) return <LoadingView />;
|
||||
if (me.isError) return <ErrorView onRetry={() => void me.refetch()} />;
|
||||
if (!householdId) {
|
||||
return (
|
||||
<Screen>
|
||||
|
||||
@@ -8,6 +8,7 @@ import {
|
||||
Body,
|
||||
Button,
|
||||
Card,
|
||||
ErrorView,
|
||||
Heading,
|
||||
LoadingView,
|
||||
Row,
|
||||
@@ -107,6 +108,7 @@ export default function ProfileScreen() {
|
||||
});
|
||||
|
||||
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]));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user