Skip to content

Commit 5763de9

Browse files
authored
chore(rna); remove socialProviders props (#3064)
1 parent 4b374c7 commit 5763de9

File tree

6 files changed

+0
-617
lines changed

6 files changed

+0
-617
lines changed

packages/react-core/src/Authenticator/hooks/types.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ export type SetupTOTPBaseProps<FieldType = {}> = {
122122

123123
export type SignInBaseProps<FieldType = {}> = {
124124
hideSignUp?: boolean;
125-
socialProviders?: AuthenticatorMachineContext['socialProviders'];
126125
toFederatedSignIn: AuthenticatorMachineContext['toFederatedSignIn'];
127126
toResetPassword: AuthenticatorMachineContext['toResetPassword'];
128127
toSignUp: AuthenticatorMachineContext['toSignUp'];
@@ -131,7 +130,6 @@ export type SignInBaseProps<FieldType = {}> = {
131130

132131
export type SignUpBaseProps<FieldType = {}> = {
133132
hideSignIn?: boolean;
134-
socialProviders?: AuthenticatorMachineContext['socialProviders'];
135133
toFederatedSignIn: AuthenticatorMachineContext['toFederatedSignIn'];
136134
toSignIn: AuthenticatorMachineContext['toSignIn'];
137135
validationErrors?: AuthenticatorMachineContext['validationErrors'];

packages/react-core/src/Authenticator/hooks/useAuthenticatorRoute/__tests__/__snapshots__/useAuthenticatorRoute.spec.ts.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ Object {
137137
"handleSubmit": [MockFunction],
138138
"hideSignUp": false,
139139
"isPending": false,
140-
"socialProviders": Array [],
141140
"toFederatedSignIn": [MockFunction],
142141
"toResetPassword": [MockFunction],
143142
"toSignUp": [MockFunction],

packages/react-core/src/Authenticator/hooks/useAuthenticatorRoute/__tests__/utils.spec.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ const {
4242
resendCode,
4343
route,
4444
skipVerification,
45-
socialProviders,
4645
submitForm,
4746
toFederatedSignIn,
4847
toResetPassword,
@@ -90,7 +89,6 @@ describe('getRouteMachineSelector', () => {
9089
'signIn',
9190
[
9291
...commonSelectorProps,
93-
socialProviders,
9492
toFederatedSignIn,
9593
toResetPassword,
9694
toSignUp,
@@ -143,7 +141,6 @@ describe('props resolver functions', () => {
143141
error,
144142
hideSignUp: false,
145143
isPending,
146-
socialProviders,
147144
toFederatedSignIn,
148145
toResetPassword,
149146
toSignUp,

packages/react-core/src/Authenticator/hooks/useAuthenticatorRoute/constants.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ const RESET_PASSWORD_MACHINE_KEYS: ResetPasswordMachineKey[] = [
6565
];
6666
const SIGN_IN_MACHINE_KEYS: SignInMachineKey[] = [
6767
...COMMON_ROUTE_MACHINE_KEYS,
68-
'socialProviders',
6968
'toFederatedSignIn',
7069
'toResetPassword',
7170
'toSignUp',

packages/react-native/src/Authenticator/Defaults/SignUp/__tests__/SignUp.spec.tsx

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -76,21 +76,6 @@ describe('SignUp', () => {
7676
expect(queryByRole('tab')).toBe(null);
7777
});
7878

79-
it('renders as expected with social providers', () => {
80-
const { toJSON, queryByText } = render(
81-
<SignUp
82-
{...props}
83-
socialProviders={['amazon', 'apple', 'facebook', 'google']}
84-
/>
85-
);
86-
expect(toJSON()).toMatchSnapshot();
87-
88-
expect(queryByText('amazon')).toBeDefined();
89-
expect(queryByText('apple')).toBeDefined();
90-
expect(queryByText('facebook')).toBeDefined();
91-
expect(queryByText('google')).toBeDefined();
92-
});
93-
9479
it('renders as expected when isPending is true', () => {
9580
const { toJSON, queryByText } = render(<SignUp {...props} isPending />);
9681
expect(toJSON()).toMatchSnapshot();

0 commit comments

Comments
 (0)