Skip to content

Commit 875775f

Browse files
committed
Change UserCard import
1 parent b94bad1 commit 875775f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/components/GoogleLogin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useState, useEffect } from 'react';
22
import { gapi, loadAuth2 } from 'gapi-script'
33

4-
import UserCard from './UserCard';
4+
import { UserCard } from './UserCard';
55
import './GoogleLogin.css';
66

77
export const GoogleLogin = () => {

src/components/UserCard.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
import React from 'react';
22

3-
const UserCard = (props) => {
3+
export const UserCard = (props) => {
44
return (
55
<div>
66
<h2>{props.user.name}</h2>
77
<img src={props.user.profileImg} alt="user profile" />
88
</div>
99
);
1010
}
11-
12-
export default UserCard;

0 commit comments

Comments
 (0)