fix: auth page locale

This commit is contained in:
Mahyar Khanbolooki
2025-07-24 16:08:58 +03:30
parent 015f23fc66
commit 8b92487f6e
4 changed files with 4 additions and 4 deletions
@@ -15,7 +15,7 @@ type Props = {
function StepEnterNumber({ onChange, pending, disabled, value }: Props) { function StepEnterNumber({ onChange, pending, disabled, value }: Props) {
const [error, setError] = useState(''); const [error, setError] = useState('');
const { t } = useTranslation(); const { t } = useTranslation('auth');
const hasError = (e = error) => { const hasError = (e = error) => {
return e.trim().length > 0 return e.trim().length > 0
@@ -18,7 +18,7 @@ type Props = {
function StepEnterOtp({ onChange, onClick, pending, disabled = false, value, phoneNumber, timerRunning, secondsLeft }: Props) { function StepEnterOtp({ onChange, onClick, pending, disabled = false, value, phoneNumber, timerRunning, secondsLeft }: Props) {
const [error, setError] = useState(''); const [error, setError] = useState('');
const { t } = useTranslation(); const { t } = useTranslation('auth');
const hasError = (e = error) => { const hasError = (e = error) => {
return e.trim().length > 0 return e.trim().length > 0
@@ -17,7 +17,7 @@ type Props = {
function StepEnterPassword({ onChange, onClick, pending, disabled = false, value, passwordVisible, rememberMe }: Props) { function StepEnterPassword({ onChange, onClick, pending, disabled = false, value, passwordVisible, rememberMe }: Props) {
const [error, setError] = useState(''); const [error, setError] = useState('');
const { t } = useTranslation(); const { t } = useTranslation('auth');
const hasError = (e = error) => { const hasError = (e = error) => {
return e.trim().length > 0 return e.trim().length > 0
@@ -20,7 +20,7 @@ type Props = {
function StepNewPassword({ isReset: reset = false, pending, disabled = false, onChange, onClick, value, repeatValue, passwordVisible, repeatPasswordVisible }: Props) { function StepNewPassword({ isReset: reset = false, pending, disabled = false, onChange, onClick, value, repeatValue, passwordVisible, repeatPasswordVisible }: Props) {
const [error, setError] = useState(''); const [error, setError] = useState('');
const [error2, setError2] = useState(''); const [error2, setError2] = useState('');
const { t } = useTranslation(); const { t } = useTranslation('auth');
const hasError = (e = error) => { const hasError = (e = error) => {
return e.trim().length > 0 return e.trim().length > 0