Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Commit

Permalink
Update AuthElements.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
shauryaaher committed May 2, 2022
1 parent 602f5f5 commit 4021904
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/AuthElements.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
export function AuthElements({
signInWithGoogle,
signUserOut,
signInUsingMicrosoft,
deleteAccount,
}) {
export function AuthElements(props) {
return (
<div
style={{
Expand All @@ -14,7 +9,7 @@ export function AuthElements({
>
<h1 id="banner"> </h1>
<br />
<form onSubmit={signInWithGoogle}>
<form onSubmit={props.google}>
<button
id="google"
style={{
Expand All @@ -28,7 +23,7 @@ export function AuthElements({
</form>
<br />
<br />
<form onSubmit={signUserOut}>
<form onSubmit={props.out}>
<button
type="submit"
id="signOut"
Expand All @@ -40,7 +35,7 @@ export function AuthElements({
Sign out
</button>
</form>
<form onSubmit={signInUsingMicrosoft}>
<form onSubmit={props.microsoft}>
<button
type="submit"
id="microsoft"
Expand All @@ -54,7 +49,7 @@ export function AuthElements({
</form>
<br />
<br />
<form onSubmit={deleteAccount}>
<form onSubmit={props.delete}>
<button
id="delete"
style={{
Expand Down

0 comments on commit 4021904

Please sign in to comment.