We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b94bad1 commit 875775fCopy full SHA for 875775f
src/components/GoogleLogin.js
@@ -1,7 +1,7 @@
1
import React, { useState, useEffect } from 'react';
2
import { gapi, loadAuth2 } from 'gapi-script'
3
4
-import UserCard from './UserCard';
+import { UserCard } from './UserCard';
5
import './GoogleLogin.css';
6
7
export const GoogleLogin = () => {
src/components/UserCard.js
@@ -1,12 +1,10 @@
import React from 'react';
-const UserCard = (props) => {
+export const UserCard = (props) => {
return (
<div>
<h2>{props.user.name}</h2>
<img src={props.user.profileImg} alt="user profile" />
8
</div>
9
);
10
}
11
-
12
-export default UserCard;
0 commit comments