percantage

This commit is contained in:
hamid zarghami
2025-03-03 12:18:56 +03:30
parent c7d6f45501
commit 3af46a330f
10 changed files with 72 additions and 19 deletions
+3 -1
View File
@@ -22,10 +22,11 @@ import Phone from './components/Phone'
const Profile: FC = () => {
const { t } = useTranslation('global')
const singleUpload = useSingleUpload()
const [file, setFile] = useState<File>()
const getProvines = useGetProvines()
const getProfile = useGetProfile()
const [percent, setPercent] = useState<number>(0)
const singleUpload = useSingleUpload(setPercent)
const updateProfile = useUpdateProfile()
const formik = useFormik<UpdateProfileType>({
@@ -126,6 +127,7 @@ const Profile: FC = () => {
<Button
isLoading={singleUpload.isPending || updateProfile.isPending}
className='xl:w-[160px] w-fit px-4 xl:;px-0 h-8 xl:h-10 text-xs xl:text-sm'
percentage={percent}
>
<input {...getInputProps()} />
<div {...getRootProps()} className='flex items-center gap-3'>