fix: build errors, authentication card margin
This commit is contained in:
@@ -21,9 +21,9 @@ export const AuthenticationCard = ({
|
|||||||
xs: 3,
|
xs: 3,
|
||||||
md: 6,
|
md: 6,
|
||||||
},
|
},
|
||||||
marginInline: 2,
|
mx: 2,
|
||||||
boxSizing: 'border-box',
|
boxSizing: 'border-box',
|
||||||
width: '100%',
|
width: (t) => `calc(100% - ${t.spacing(2)})`,
|
||||||
maxWidth: maxWidth ?? '552px',
|
maxWidth: maxWidth ?? '552px',
|
||||||
|
|
||||||
...sx,
|
...sx,
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import {
|
|||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
import type { AuthType } from '../../types/authTypes';
|
import type { AuthType } from '../../types/authTypes';
|
||||||
import type { CountryCode, GUID } from '@/types/commonTypes';
|
import type { CountryCode } from '@/types/commonTypes';
|
||||||
import {
|
import {
|
||||||
loginWithPassword,
|
loginWithPassword,
|
||||||
sendEmailOtp,
|
sendEmailOtp,
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ import type {
|
|||||||
LoginResult,
|
LoginResult,
|
||||||
} from '../../types/userTypes';
|
} from '../../types/userTypes';
|
||||||
import { loginOrSignUpWithGoogle } from '../../api/authorizationAPI';
|
import { loginOrSignUpWithGoogle } from '../../api/authorizationAPI';
|
||||||
import type { GUID } from '@/types/commonTypes';
|
|
||||||
import { Google } from 'iconsax-react';
|
import { Google } from 'iconsax-react';
|
||||||
import { Icon, useToast } from '@rkheftan/harmony-ui';
|
import { Icon, useToast } from '@rkheftan/harmony-ui';
|
||||||
import { useApi } from '@/hooks/useApi';
|
import { useApi } from '@/hooks/useApi';
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import { AuthenticationCard } from '../AuthenticationCard';
|
|||||||
import { CountryCodeSelector } from '../CountryCodeSelector';
|
import { CountryCodeSelector } from '../CountryCodeSelector';
|
||||||
import type { LoginResult, UserStatus } from '../../types/userTypes';
|
import type { LoginResult, UserStatus } from '../../types/userTypes';
|
||||||
import { getUserStatusByPhoneNumberOrEmail } from '../../api/authorizationAPI';
|
import { getUserStatusByPhoneNumberOrEmail } from '../../api/authorizationAPI';
|
||||||
import type { CountryCode, GUID } from '@/types/commonTypes';
|
import type { CountryCode } from '@/types/commonTypes';
|
||||||
import { GoogleAuthentication } from './GoogleAuthentication';
|
import { GoogleAuthentication } from './GoogleAuthentication';
|
||||||
import { isPhoneNumber } from '@/utils/regexes/isValidPhoneNumber';
|
import { isPhoneNumber } from '@/utils/regexes/isValidPhoneNumber';
|
||||||
import { useToast } from '@rkheftan/harmony-ui';
|
import { useToast } from '@rkheftan/harmony-ui';
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import {
|
|||||||
sendEmailOtp,
|
sendEmailOtp,
|
||||||
sendSmsOtp,
|
sendSmsOtp,
|
||||||
} from '../../api/authorizationAPI';
|
} from '../../api/authorizationAPI';
|
||||||
import type { CountryCode, GUID } from '@/types/commonTypes';
|
import type { CountryCode } from '@/types/commonTypes';
|
||||||
import { Icon, useToast } from '@rkheftan/harmony-ui';
|
import { Icon, useToast } from '@rkheftan/harmony-ui';
|
||||||
import { useApi } from '@/hooks/useApi';
|
import { useApi } from '@/hooks/useApi';
|
||||||
import { generateTokenWithOtp } from '../../api/identityAPI';
|
import { generateTokenWithOtp } from '../../api/identityAPI';
|
||||||
|
|||||||
Reference in New Issue
Block a user