Skip to content

Commit 25ffa05

Browse files
committed
adding missing keys for React
1 parent 0a96adf commit 25ffa05

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

react-static-web-apps-auth/src/StaticWebAuthLogins.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const AzureADLogin = ({ postLoginRedirect, label }: LoginProps) => (
2929
id="aad"
3030
postLoginRedirect={postLoginRedirect}
3131
label={label}
32+
key="aad"
3233
/>
3334
);
3435
const FacebookLogin = ({ postLoginRedirect, label }: LoginProps) => (
@@ -37,6 +38,7 @@ const FacebookLogin = ({ postLoginRedirect, label }: LoginProps) => (
3738
id="facebook"
3839
postLoginRedirect={postLoginRedirect}
3940
label={label}
41+
key="facebook"
4042
/>
4143
);
4244
const TwitterLogin = ({ postLoginRedirect, label }: LoginProps) => (
@@ -45,6 +47,7 @@ const TwitterLogin = ({ postLoginRedirect, label }: LoginProps) => (
4547
id="twitter"
4648
postLoginRedirect={postLoginRedirect}
4749
label={label}
50+
key="twitter"
4851
/>
4952
);
5053
const GitHubLogin = ({ postLoginRedirect, label }: LoginProps) => (
@@ -53,6 +56,7 @@ const GitHubLogin = ({ postLoginRedirect, label }: LoginProps) => (
5356
id="github"
5457
postLoginRedirect={postLoginRedirect}
5558
label={label}
59+
key="github"
5660
/>
5761
);
5862
const GoogleLogin = ({ postLoginRedirect, label }: LoginProps) => (
@@ -61,6 +65,7 @@ const GoogleLogin = ({ postLoginRedirect, label }: LoginProps) => (
6165
id="google"
6266
postLoginRedirect={postLoginRedirect}
6367
label={label}
68+
key="google"
6469
/>
6570
);
6671
const AppleLogin = ({ postLoginRedirect, label }: LoginProps) => (
@@ -69,6 +74,7 @@ const AppleLogin = ({ postLoginRedirect, label }: LoginProps) => (
6974
id="apple"
7075
postLoginRedirect={postLoginRedirect}
7176
label={label}
77+
key="apple"
7278
/>
7379
);
7480

@@ -83,6 +89,7 @@ const CustomProviderLogin = ({
8389
id={id}
8490
postLoginRedirect={postLoginRedirect}
8591
label={label}
92+
key={id}
8693
/>
8794
);
8895

@@ -94,6 +101,7 @@ const StaticWebAuthLogins = (props: LoginProviderProps) => {
94101
<AzureADLogin
95102
postLoginRedirect={props.postLoginRedirect}
96103
label={props.label}
104+
key="aad"
97105
/>
98106
);
99107
}
@@ -102,6 +110,7 @@ const StaticWebAuthLogins = (props: LoginProviderProps) => {
102110
<AppleLogin
103111
postLoginRedirect={props.postLoginRedirect}
104112
label={props.label}
113+
key="apple"
105114
/>
106115
);
107116
}
@@ -110,6 +119,7 @@ const StaticWebAuthLogins = (props: LoginProviderProps) => {
110119
<FacebookLogin
111120
postLoginRedirect={props.postLoginRedirect}
112121
label={props.label}
122+
key="facebook"
113123
/>
114124
);
115125
}
@@ -118,6 +128,7 @@ const StaticWebAuthLogins = (props: LoginProviderProps) => {
118128
<TwitterLogin
119129
postLoginRedirect={props.postLoginRedirect}
120130
label={props.label}
131+
key="twitter"
121132
/>
122133
);
123134
}
@@ -126,6 +137,7 @@ const StaticWebAuthLogins = (props: LoginProviderProps) => {
126137
<GitHubLogin
127138
postLoginRedirect={props.postLoginRedirect}
128139
label={props.label}
140+
key="github"
129141
/>
130142
);
131143
}
@@ -134,6 +146,7 @@ const StaticWebAuthLogins = (props: LoginProviderProps) => {
134146
<GoogleLogin
135147
postLoginRedirect={props.postLoginRedirect}
136148
label={props.label}
149+
key="google"
137150
/>
138151
);
139152
}

0 commit comments

Comments
 (0)