setting + danak learning + buy service + footer + header

This commit is contained in:
hamid zarghami
2025-03-01 17:58:55 +03:30
parent 1012ea7544
commit 9acf0e7085
8 changed files with 26 additions and 16 deletions
+7 -1
View File
@@ -1,4 +1,4 @@
import { FC, useState } from 'react'
import { FC, useEffect, useState } from 'react'
import Button from '../../../components/Button'
import { useTranslation } from 'react-i18next'
import { clx } from '../../../helpers/utils'
@@ -42,6 +42,11 @@ const Online: FC = () => {
}
}
useEffect(() => {
setDesiredAmount(amountSelected)
}, [amountSelected])
return (
<div className='mt-8 bg-white p-8 rounded-3xl'>
<div>
@@ -71,6 +76,7 @@ const Online: FC = () => {
label={t('wallet.optional_price')}
placeholder={t('wallet.enter_your_price')}
onChange={(e) => setDesiredAmount(Number(e.target.value))}
value={desiredAmount}
/>
</div>