Skip to content

Commit 944c64f

Browse files
committed
fix: externalize strings to i18n and make time display conditional
1 parent e998a06 commit 944c64f

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

components/modals/review-modal/review-modal.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,12 @@ export const ReviewModal = ({
149149

150150
<div className="py-[0.5px] w-full bg-gray-300 my-2"></div>
151151

152-
<div className="font-medium">
153-
<div className="text-xs text-gray-500">Estimated time</div>
154-
<div className="text-sm">24h</div>
155-
</div>
152+
{parseFloat(amount) < 10000 && (
153+
<div className="font-medium">
154+
<div className="text-xs text-gray-500">{t('estimated_time')}</div>
155+
<div className="text-sm">{t('estimated_time_duration')}</div>
156+
</div>
157+
)}
156158

157159
{/* <div className="py-[0.5px] w-full bg-gray-300 my-2"></div>
158160

public/locales/en/main.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,7 @@
7575
"unwrap_info_message": "To proceed and complete unwrapping your wXTM tokens, you need to <bold>sign</bold> and then <bold>approve</bold> the transaction in your MetaMask wallet."
7676
,
7777
"from": "from",
78-
"to": "to"
78+
"to": "to",
79+
"estimated_time": "Estimated Arrival",
80+
"estimated_time_duration": "~5-10 minutes"
7981
}

0 commit comments

Comments
 (0)