From a26923f45508b4e0c6a4b3446f07a9afb59083f2 Mon Sep 17 00:00:00 2001 From: Mahyar Khanbolooki Date: Tue, 1 Jul 2025 01:41:19 +0330 Subject: [PATCH] refactor: PrimaryButton to Button --- src/components/button/PrimaryButton.tsx | 6 +++--- src/features/auth/components/StepEnterNumber.tsx | 4 ++-- src/features/auth/components/StepEnterOtp.tsx | 4 ++-- src/features/auth/components/StepEnterPassword.tsx | 4 ++-- src/features/auth/components/StepNewPassword.tsx | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/components/button/PrimaryButton.tsx b/src/components/button/PrimaryButton.tsx index 1360a32..44dfccc 100644 --- a/src/components/button/PrimaryButton.tsx +++ b/src/components/button/PrimaryButton.tsx @@ -2,12 +2,12 @@ import React from 'react' type Props = {} & React.ButtonHTMLAttributes; -function PrimaryButton({ children, className, ...rest }: Props) { +function Button({ children, className, ...rest }: Props) { return ( - ) } -export default PrimaryButton \ No newline at end of file +export default Button \ No newline at end of file diff --git a/src/features/auth/components/StepEnterNumber.tsx b/src/features/auth/components/StepEnterNumber.tsx index 125420c..338c481 100644 --- a/src/features/auth/components/StepEnterNumber.tsx +++ b/src/features/auth/components/StepEnterNumber.tsx @@ -1,4 +1,4 @@ -import PrimaryButton from '@/components/button/PrimaryButton'; +import Button from '@/components/button/PrimaryButton'; import InputField from '@/components/input/InputField'; import { AUTH_PAGE_ELEMENT } from '@/enums'; import React from 'react' @@ -27,7 +27,7 @@ function StepEnterNumber({ onSubmit, onChange, value }: Props) { onChange={onChange} type='number' /> - بعدی + ) } diff --git a/src/features/auth/components/StepEnterOtp.tsx b/src/features/auth/components/StepEnterOtp.tsx index 09d2b69..60d1351 100644 --- a/src/features/auth/components/StepEnterOtp.tsx +++ b/src/features/auth/components/StepEnterOtp.tsx @@ -1,4 +1,4 @@ -import PrimaryButton from '@/components/button/PrimaryButton'; +import Button from '@/components/button/PrimaryButton'; import OTPInputField from '@/components/input/MultiInputField'; import { AUTH_PAGE_ELEMENT, AUTH_PAGE_ELEMENT as AUTH_PAGE_ELEMENTS } from '@/enums'; import React from 'react' @@ -51,7 +51,7 @@ function StepEnterOtp({ onSubmit, onChange, onClick, value, phoneNumber, timerRu - بعدی + ) } diff --git a/src/features/auth/components/StepEnterPassword.tsx b/src/features/auth/components/StepEnterPassword.tsx index efbb10b..7d4fe32 100644 --- a/src/features/auth/components/StepEnterPassword.tsx +++ b/src/features/auth/components/StepEnterPassword.tsx @@ -1,4 +1,4 @@ -import PrimaryButton from '@/components/button/PrimaryButton'; +import Button from '@/components/button/PrimaryButton'; import { EyeToggleIcon } from '@/components/icons/EyeToggleIcon'; import InputField from '@/components/input/InputField'; import { AUTH_PAGE_ELEMENT } from '@/enums'; @@ -43,7 +43,7 @@ function StepEnterPassword({ onSubmit, onChange, onClick, value, passwordVisible - ورود به منو + ) } diff --git a/src/features/auth/components/StepNewPassword.tsx b/src/features/auth/components/StepNewPassword.tsx index 0c6b911..dfaf52f 100644 --- a/src/features/auth/components/StepNewPassword.tsx +++ b/src/features/auth/components/StepNewPassword.tsx @@ -1,4 +1,4 @@ -import PrimaryButton from '@/components/button/PrimaryButton'; +import Button from '@/components/button/PrimaryButton'; import { EyeToggleIcon } from '@/components/icons/EyeToggleIcon'; import InputField from '@/components/input/InputField'; import { AUTH_PAGE_ELEMENT } from '@/enums'; @@ -52,7 +52,7 @@ function StepNewPassword({ reset = false, onSubmit, onChange, onClick, value, re - ورود + ) }