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 5822a74
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
8 changes: 5 additions & 3 deletions src/app/(authenticated)/strategies/StrategyCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const getConditionName = (type: string): string => {
case 'marketCap':
return 'Market Cap';
case 'blacklist':
return 'Blacklist';
return 'Prevention: ';
case 'price':
return 'Price';
case 'age':
Expand Down Expand Up @@ -101,7 +101,9 @@ const ConditionBadge: React.FC<{ condition: BuyCondition | SellCondition }> = ({
return `${condition.days} day${condition.days !== 1 ? 's' : ''}`;
}
if (isBlacklistCondition(condition)) {
return `${condition.checkDollarSign ? '$' : ''}${condition.checkBlacklist ? 'BL' : ''}`;
return `${condition.checkDollarSign ? '$ ' : ''}${
condition.checkBlacklist ? 'scam names' : ''
}`;
}
if ('value' in condition) {
const addDollarSign =
Expand Down Expand Up @@ -154,7 +156,7 @@ const BuyConditions: React.FC<{
<div className='mt-2'>
<Badge variant='green' rounded='full'>
<DollarSign className='h-4 w-4 mr-1' />
{`Buy $${buy.action.amount}`}
{`Buy ${buy.action.amount} TON`}
</Badge>
</div>
</div>
Expand Down
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 5822a74

Please sign in to comment.