diff --git a/public/vite.svg b/public/vite.svg index 30a42c2..239f57b 100644 --- a/public/vite.svg +++ b/public/vite.svg @@ -1,3 +1,19 @@ - - - + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/shared/components/BuySpace.tsx b/src/shared/components/BuySpace.tsx index 5e0de92..4e82525 100644 --- a/src/shared/components/BuySpace.tsx +++ b/src/shared/components/BuySpace.tsx @@ -1,15 +1,16 @@ import DefaulModal from '@/components/DefaulModal' import { useSharedStore } from '@/shared/store/sharedStore' import { useTranslation } from 'react-i18next' -import { FC } from 'react' +import { FC, useState } from 'react' import { clx } from '@/helpers/utils' import Input from '@/components/Input' +import { NumberFormat } from '@/config/func' const BuySpace: FC = () => { const { t } = useTranslation() const { openBuySpace, setOpenBuySpace } = useSharedStore() - console.log(openBuySpace); + const [spaceSelected, setSpaceSelected] = useState(1) return ( { {t('space.select_space')}
-
setSpaceSelected(1)} className={clx( 'bg-[#EBEDF5] border border-[#EBEDF5] cursor-pointer flex items-center text-xs h-10 px-6 rounded-lg', - // amountSelected === amount && 'border-black' + spaceSelected === 1 && 'border-black' )}> - {'1000000'.toLocaleString()} تومان + 1 گیگبایت
@@ -40,7 +41,7 @@ const BuySpace: FC = () => {
{t('space.price')}
-
{'1000000'.toLocaleString()} تومان
+
{NumberFormat(1000000)} تومان