Skip to content

Commit

Permalink
feat(auth): disable social login features
Browse files Browse the repository at this point in the history
* fix: delete social login code
* fix: update tests
* fix: remove social buttons list code from registration
  • Loading branch information
borkopetrovicc authored Jun 12, 2024
1 parent 6009ef5 commit f504e8f
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 45 deletions.
5 changes: 1 addition & 4 deletions packages/ui-react/src/components/LoginForm/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import Link from '../Link/Link';
import IconButton from '../IconButton/IconButton';
import FormFeedback from '../FormFeedback/FormFeedback';
import LoadingOverlay from '../LoadingOverlay/LoadingOverlay';
import SocialButtonsList from '../SocialButtonsList/SocialButtonsList';
import Icon from '../Icon/Icon';
import { modalURLFromLocation } from '../../utils/location';

Expand All @@ -33,7 +32,7 @@ type Props = {
siteName?: string;
};

const LoginForm: React.FC<Props> = ({ onSubmit, onChange, socialLoginURLs, values, errors, validationError, submitting, siteName }: Props) => {
const LoginForm: React.FC<Props> = ({ onSubmit, onChange, values, errors, validationError, submitting, siteName }: Props) => {
const [viewPassword, toggleViewPassword] = useToggle();
const { t } = useTranslation('account');
const location = useLocation();
Expand All @@ -45,8 +44,6 @@ const LoginForm: React.FC<Props> = ({ onSubmit, onChange, socialLoginURLs, value
{errors.form}
</FormFeedback>
) : null}

<SocialButtonsList socialLoginURLs={socialLoginURLs} />
<h2 className={styles.title}>{t('login.sign_in')}</h2>
<TextField
value={values.email}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,6 @@ exports[`<LoginForm> > renders and matches snapshot 1`] = `
data-testid="login-form"
novalidate=""
>
<div
class="_socialButtonsListContainer_313d0d"
>
<a
href="https://staging-v2.inplayer.com/"
>
Social Button
</a>
<a
href="https://www.facebook.com/"
>
Social Button
</a>
<a
href="https://accounts.google.com/"
>
Social Button
</a>
</div>
<h2
class="_title_7bd5f4"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import FormFeedback from '../FormFeedback/FormFeedback';
import LoadingOverlay from '../LoadingOverlay/LoadingOverlay';
import Link from '../Link/Link';
import { modalURLFromLocation } from '../../utils/location';
import SocialButtonsList from '../SocialButtonsList/SocialButtonsList';
import PasswordField from '../form-fields/PasswordField/PasswordField';

import styles from './RegistrationForm.module.scss';
Expand Down Expand Up @@ -49,7 +48,6 @@ const RegistrationForm: React.FC<Props> = ({
consentValues,
onConsentChange,
consentErrors,
socialLoginURLs,
}: Props) => {
const { t, i18n } = useTranslation('account');
const location = useLocation();
Expand Down Expand Up @@ -84,7 +82,6 @@ const RegistrationForm: React.FC<Props> = ({
</FormFeedback>
) : null}
</div>
<SocialButtonsList socialLoginURLs={socialLoginURLs} />
<h2 className={styles.title}>{t('registration.sign_up')}</h2>
<TextField
value={values.email}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,6 @@ exports[`<RegistrationForm> > renders and matches snapshot 1`] = `
novalidate=""
>
<div />
<div
class="_socialButtonsListContainer_313d0d"
>
<a
href="https://staging-v2.inplayer.com/"
>
Social Button
</a>
<a
href="https://www.facebook.com/"
>
Social Button
</a>
<a
href="https://accounts.google.com/"
>
Social Button
</a>
</div>
<h2
class="_title_a472a0"
>
Expand Down

0 comments on commit f504e8f

Please sign in to comment.