diff --git a/src/core/ui/components/AddonCard.tsx b/src/core/ui/components/AddonCard.tsx index a58445d..b2947e8 100644 --- a/src/core/ui/components/AddonCard.tsx +++ b/src/core/ui/components/AddonCard.tsx @@ -44,7 +44,7 @@ const useStyles = createStyles({ }, headerLabel: { ...TextStyleSheet["heading-md/semibold"], - color: semanticColors.TEXT_NORMAL, + color: semanticColors.HEADER_PRIMARY, }, headerSubtitle: { ...TextStyleSheet["text-md/semibold"], diff --git a/src/core/ui/reporter/components/ErrorBoundaryScreen.tsx b/src/core/ui/reporter/components/ErrorBoundaryScreen.tsx index 9e290b0..f3a1495 100644 --- a/src/core/ui/reporter/components/ErrorBoundaryScreen.tsx +++ b/src/core/ui/reporter/components/ErrorBoundaryScreen.tsx @@ -19,6 +19,7 @@ import { TableSwitchRow, Stack, } from "@metro/common/components"; +import { semanticColors } from "@ui/color"; import { ScrollView, View } from "react-native"; import ErrorComponentStackCard from "./ErrorComponentStackCard"; @@ -74,7 +75,7 @@ export default function ErrorBoundaryScreen(props: { void; + error: unknown; + header?: string | ReactNode; + onRetryRender?: () => void; } export default function ErrorCard(props: ErrorCardProps) { - return - - {props.header && typeof props.header !== "string" - ? props.header - : {props.header ?? Strings.UH_OH} - } - {String(props.error)} - - {props.onRetryRender &&