diff --git a/app/(prizes)/prizes/[user_id]/page.tsx b/app/(prizes)/prizes/[user_id]/page.tsx index 3dbbe5c..91cc745 100644 --- a/app/(prizes)/prizes/[user_id]/page.tsx +++ b/app/(prizes)/prizes/[user_id]/page.tsx @@ -39,7 +39,7 @@ const PrizesPage = ({ params }: { params: { user_id: string } }) => { if (isLoading) return (
- Loading... + Ýüklenilýär...
); diff --git a/components/prizes/PrizeCard.tsx b/components/prizes/PrizeCard.tsx index 7850222..f18e292 100644 --- a/components/prizes/PrizeCard.tsx +++ b/components/prizes/PrizeCard.tsx @@ -47,21 +47,21 @@ const PrizeCard = ({ code, }), onSuccess: () => { - setDialogTitle('Успешно'); - setDialogDescription('Приз успешно выбран.'); + setDialogTitle('Üstünlikli'); + setDialogDescription('Sowgat üstünlikli saýlanyldy.'); setIsSuccess(true); // Mark as success so we can handle setting the prize when dialog closes }, onError: () => { - setDialogTitle('Ошибка'); - setDialogDescription('Произошла ошибка, попробуйте еще раз.'); + setDialogTitle('Ýalňyşlyk'); + setDialogDescription('Ýalňyşlyk ýüze çykdy, gaýtadan synanşyp görmegiňizi haýyş edýäris.'); setIsSuccess(false); // Reset on error }, }); const handleDialogOpen = () => { // Reset the dialog to show the loading state - setDialogTitle('Загрузка...'); - setDialogDescription('Пожалуйста подождите'); + setDialogTitle('Ýüklenilýär...'); + setDialogDescription('Haýyş edýäris, garaşyň'); setIsSuccess(false); // Reset success state before opening // Trigger the mutation when the dialog opens @@ -113,7 +113,7 @@ const PrizeCard = ({ className="px-[24px] py-[10px] w-full md:w-fit text-textSmall leading-textSmall -tracking-[-1%] font-medium bg-lightPrimary text-lightOnPrimary rounded-[40px]" onClick={handleDialogOpen} disabled={choosePrizeMutation.isLoading}> - {choosePrizeMutation.isLoading ? 'Loading...' : 'Saýla'} + {choosePrizeMutation.isLoading ? 'Ýüklenilýär...' : 'Saýla'} @@ -123,11 +123,11 @@ const PrizeCard = ({ {dialogTitle} {dialogDescription} - {dialogTitle !== 'Загрузка...' && ( + {dialogTitle !== 'Ýüklenilýär...' && ( @@ -140,13 +140,13 @@ const PrizeCard = ({ ) : variant === 'selected' ? ( ) : null} diff --git a/components/prizes/SmsForm.tsx b/components/prizes/SmsForm.tsx index 6de8aa0..e6460cf 100644 --- a/components/prizes/SmsForm.tsx +++ b/components/prizes/SmsForm.tsx @@ -64,7 +64,8 @@ const SmsForm: React.FC = () => { value={inputValue} onChange={(e) => setInputValue(e.target.value)} className="px-[16px] py-[12px] bg-lightPrimaryContainer rounded-[12px] outline-none text-lightOnSurfaceVariant text-textSmall leading-textSmall" - placeholder="Введите свой промокод" + placeholder="Öz koduňyzy giriziň + " /> {errorMessage && (

{errorMessage}

@@ -74,7 +75,7 @@ const SmsForm: React.FC = () => { type="submit" disabled={inputValue.length !== 6 || mutation.isLoading} className="text-textLarge leading-textLarge py-[12px] w-full flex justify-center items-center rounded-[12px] bg-lightPrimary font-medium text-lightOnPrimary"> - {mutation.isLoading ? 'Loading...' : 'Giriş'} + {mutation.isLoading ? 'Ýüklenilýär...' : 'Giriş'} );