fix: auth page locale
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user