Skip to content

Commit

Permalink
fix: fix wording
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoulaud committed Oct 7, 2024
1 parent dabc27d commit f4f8894
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/app/components/StrategyForm/BuyStrategyStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ export const BuyStrategyStep: React.FC<BuyStrategyStepProps> = ({ onNext, onPrev
<Input
id='investment-amount'
type='text'
label='Amount invested on each token'
currencySymbol='$'
label='Amount of TON invested on each token'
placeholder='0.00'
className='max-w-40'
{...field}
Expand Down
4 changes: 2 additions & 2 deletions src/app/components/StrategyForm/ConditionModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ const ConditionModal = memo<ConditionModalProps>(
control={control}
render={({ field }) => (
<Checkbox
label='Check Blacklist'
label='Prevent buying common scam token names'
checked={field.value}
onChange={(e) => field.onChange(e.target.checked)}
/>
Expand Down Expand Up @@ -250,7 +250,7 @@ function getConditionLabel(type: BuyCondition['type']): string {
case 'age':
return 'Age';
case 'blacklist':
return 'Blacklist';
return 'Scam Prevention';
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/app/components/StrategyForm/SettingsStrategyStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ export const SettingsStrategyStep: React.FC<{ onNext: () => void }> = memo(({ on
control={control}
render={({ field }) => (
<Input
label='Max Bet Amount'
label='Maximum TON to bet'
type='number'
{...field}
onChange={(value) => field.onChange(value)}
error={
errors.maxBetAmount?.message ||
(!isMaxBetAmountValid
? `Max bet amount exceeds your current balance of $${balance}`
? `Max bet amount exceeds your current balance of ${balance} TON`
: undefined)
}
placeholder='Enter the maximum bet amount'
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/StrategyForm/strategySchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const strategySchema = z
if (data.buy && data.buy.action.amount > data.maxBetAmount) {
ctx.addIssue({
code: z.ZodIssueCode.custom,
message: `Buy amount cannot exceed the maximum bet amount of $${data.maxBetAmount}`,
message: `Buy amount cannot exceed the maximum bet amount of ${data.maxBetAmount} TON`,
path: ['buy', 'action', 'amount'],
});
}
Expand Down

0 comments on commit f4f8894

Please sign in to comment.