There was an error while loading. Please reload this page.
1 parent 42addc5 commit d3f2de9Copy full SHA for d3f2de9
step-03/journal/src/pages/Home.jsx
@@ -1,17 +1,10 @@
1
import React, { Component } from 'react';
2
import { Lead, BSpan } from 'bootstrap-4-react';
3
-import { Auth } from 'aws-amplify';
4
5
export default class Home extends Component {
6
render() {
7
const { user } = this.props;
8
9
- if (user) {
10
- Auth.userAttributes(user)
11
- .then(attributes => console.log('attributes', attributes))
12
- .catch(err => console.log('attributes error', err));
13
- }
14
-
15
return (
16
<React.Fragment>
17
<h1>Home</h1>
0 commit comments