RC-2: remove additional sign ways component and correct locales in sign in and sign up pages
This commit is contained in:
@@ -1,40 +0,0 @@
|
||||
import FuseSvgIcon from '@fuse/core/FuseSvgIcon/FuseSvgIcon';
|
||||
import { Typography } from '@mui/material';
|
||||
import Button from '@mui/material/Button';
|
||||
import { memo } from 'react';
|
||||
|
||||
function AdditionalSignWays({ divider, text }) {
|
||||
return (
|
||||
<>
|
||||
{divider && (
|
||||
<div className="flex items-center mt-28">
|
||||
<div className="flex-auto mt-px border-t" />
|
||||
<Typography className="mx-8" color="text.secondary">
|
||||
{text}
|
||||
</Typography>
|
||||
<div className="flex-auto mt-px border-t" />
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div className="flex items-center justify-center w-full mt-28 space-x-16">
|
||||
<Button variant="outlined" className="flex-auto max-w-fit">
|
||||
<FuseSvgIcon size={20} color="action">
|
||||
feather:facebook
|
||||
</FuseSvgIcon>
|
||||
</Button>
|
||||
<Button variant="outlined" className="flex-auto max-w-fit">
|
||||
<FuseSvgIcon size={20} color="action">
|
||||
feather:twitter
|
||||
</FuseSvgIcon>
|
||||
</Button>
|
||||
<Button variant="outlined" className="flex-auto max-w-fit">
|
||||
<FuseSvgIcon size={20} color="action">
|
||||
feather:github
|
||||
</FuseSvgIcon>
|
||||
</Button>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default memo(AdditionalSignWays);
|
||||
@@ -11,7 +11,6 @@ import { Controller, useForm } from 'react-hook-form';
|
||||
import { withTranslation } from 'react-i18next';
|
||||
import { Link } from 'react-router-dom';
|
||||
import * as yup from 'yup';
|
||||
import AdditionalSignWays from '../shared-components/AdditionalSignWays';
|
||||
import LeftSideCanvas from '../shared-components/LeftSideCanvas';
|
||||
|
||||
const defaultValues = {
|
||||
@@ -147,8 +146,6 @@ function SignInPage({ t }) {
|
||||
{t('sign_in_btn')}
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<AdditionalSignWays divider text={t('additional_ways')} />
|
||||
</form>
|
||||
</div>
|
||||
</Paper>
|
||||
|
||||
@@ -18,7 +18,6 @@ const locale = {
|
||||
remember: 'Remember me',
|
||||
forgot_password: 'Forgot password?',
|
||||
sign_in_btn: 'sign in',
|
||||
additional_ways: 'Or continue with',
|
||||
};
|
||||
|
||||
export default locale;
|
||||
|
||||
@@ -12,7 +12,6 @@ import { Controller, useForm } from 'react-hook-form';
|
||||
import { withTranslation } from 'react-i18next';
|
||||
import { Link } from 'react-router-dom';
|
||||
import * as yup from 'yup';
|
||||
import AdditionalSignWays from '../shared-components/AdditionalSignWays';
|
||||
import LeftSideCanvas from '../shared-components/LeftSideCanvas';
|
||||
|
||||
const defaultValues = {
|
||||
@@ -191,8 +190,6 @@ function SignUpPage({ t }) {
|
||||
{t('sign_up_btn')}
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<AdditionalSignWays divider text={t('additional_ways')} />
|
||||
</form>
|
||||
</div>
|
||||
</Paper>
|
||||
|
||||
@@ -22,7 +22,6 @@ const locale = {
|
||||
accept_terms_error:
|
||||
'Lorem ipsum dolor sit amet consectetur. Eget pellentesque id consequat consectetur eu quis.',
|
||||
sign_up_btn: 'create your account',
|
||||
additional_ways: 'Or register with',
|
||||
};
|
||||
|
||||
export default locale;
|
||||
|
||||
Reference in New Issue
Block a user