diff --git a/docs/data/material/getting-started/templates/sign-in-side/SignInCard.js b/docs/data/material/getting-started/templates/sign-in-side/SignInCard.js
index 57d293c0490a54..458568bf87b837 100644
--- a/docs/data/material/getting-started/templates/sign-in-side/SignInCard.js
+++ b/docs/data/material/getting-started/templates/sign-in-side/SignInCard.js
@@ -50,7 +50,10 @@ export default function SignInCard() {
};
const handleSubmit = (event) => {
- event.preventDefault();
+ if (emailError || passwordError) {
+ event.preventDefault();
+ return;
+ }
const data = new FormData(event.currentTarget);
console.log({
email: data.get('email'),
@@ -126,6 +129,7 @@ export default function SignInCard() {
Password
or
-
+
+
+ Password
+ alert('Sign up with Facebook')}
- startIcon={}
- >
- Sign up with Facebook
-
-
-
-
+ error={passwordError}
+ helperText={passwordErrorMessage}
+ color={passwordError ? 'error' : 'primary'}
+ />
+
+ }
+ label="I want to receive updates via email."
+ />
+
+ Sign up
+
+
+ Already have an account?{' '}
+
+
+ Sign in
+
+
+
+
+
+ or
+
+
+ alert('Sign up with Google')}
+ startIcon={}
+ >
+ Sign up with Google
+
+ alert('Sign up with Facebook')}
+ startIcon={}
+ >
+ Sign up with Facebook
+
+
+