Skip to content

Commit

Permalink
Fix untranslated 'Mint' string on homescreen when no mints are set up.
Browse files Browse the repository at this point in the history
  • Loading branch information
onoomobo committed Mar 4, 2024
1 parent 1c5ec6a commit 3344264
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/screens/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ export default function Dashboard({ navigation, route }: TDashboardPageProps) {
:
<ActionBtn
icon={<PlusIcon width={s(36)} height={vs(36)} color={hi[highlight]} />}
txt='Mint'
txt={t('mint', { ns: NS.wallet })}

Check failure on line 333 in src/screens/Dashboard.tsx

View workflow job for this annotation

GitHub Actions / build (16.x)

Argument of type '["mint", { ns: NS.wallet; }]' is not assignable to parameter of type '[key: "proofs" | "disclaimer" | "send" | TemplateStringsArray | "cashuContent" | "cashuExperiment" | "claiming" | "processingInvoice" | "custodialRisk" | ... 12 more ... | ("proofs" | ... 19 more ... | "swapped")[], options?: { ...; } | undefined] | [key: ...] | [key: ...]'.

Check failure on line 333 in src/screens/Dashboard.tsx

View workflow job for this annotation

GitHub Actions / build (18.x)

Argument of type '["mint", { ns: NS.wallet; }]' is not assignable to parameter of type '[key: "proofs" | "disclaimer" | "send" | TemplateStringsArray | "cashuContent" | "cashuExperiment" | "claiming" | "processingInvoice" | "custodialRisk" | ... 12 more ... | ("proofs" | ... 19 more ... | "swapped")[], options?: { ...; } | undefined] | [key: ...] | [key: ...]'.

Check failure on line 333 in src/screens/Dashboard.tsx

View workflow job for this annotation

GitHub Actions / build (20.x)

Argument of type '["mint", { ns: NS.wallet; }]' is not assignable to parameter of type '[key: "proofs" | "disclaimer" | "send" | TemplateStringsArray | "cashuContent" | "cashuExperiment" | "claiming" | "processingInvoice" | "custodialRisk" | ... 12 more ... | ("proofs" | ... 19 more ... | "swapped")[], options?: { ...; } | undefined] | [key: ...] | [key: ...]'.
color={hi[highlight]}
onPress={() => setModal(prev => ({ ...prev, mint: true }))}
/>
Expand Down Expand Up @@ -494,4 +494,4 @@ const styles = ScaledSheet.create({
borderColor: mainColors.WARN,
borderRadius: '50@s',
}
})
})

0 comments on commit 3344264

Please sign in to comment.