Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function signOut() {
Auth.signOut()
.catch(err => console.log('error signing out: ', err))
}
return (
<h1>Profile</h1>
<h2>Username: {user.username}</h2>
<h3>Email: {user.email}</h3>
<h4>Phone: {user.phone_number}</h4>
<button>Sign Out</button>
);
}
export default withAuthenticator(Profile)
import { withAuthenticator } from 'aws-amplify-react'
import App from './App'
export default withAuthenticator(App)
Retrieving Media File
<div>Downloading</div>
<progress value="100" color="warning">
</progress>
);
}
}
}
}
export default withAuthenticator(Result);
}, [query])
return (
<div>
<div>
<small>
{query.countryCode} - ref: <a href="{link}">{query.file.key}</a>
</small>
</div>
<canvas style="{{" height="1" width="512">
<svg></svg>
</canvas></div>
)
}
export default withAuthenticator(App)
<div>Back to Albums list</div> }
/>
}
/>
);
}
}
export default withAuthenticator(App, { includeGreetings: true });
* {
box-sizing: border-box;
color: #d73132;
font-family: 'Mr Robot';
}
body {
background-color: #1c2b34;
margin: 0;
padding: 0;
min-height: 100vh;
border: 10px solid #d73132;
padding: 20px;
}
`
export default withAuthenticator(App);
display: 'flex',
flexDirection: 'column'
},
image: {
width: 400
},
button: {
width: 200,
backgroundColor: '#ddd',
cursor: 'pointer',
height: 30,
margin: '0px 0px 8px'
}
}
export default withAuthenticator(App);
width: 475,
marginLeft: 40,
marginTop: 20,
color: 'black',
fontSize: 18,
padding: 8
},
languageButton: {
padding: '7px 20px', margin: '0px 3px', cursor: 'pointer'
},
heading: {
fontSize: 60, margin: '20px 0px'
}
}
export default withAuthenticator(App);
margin: '10px 0px'
},
header: {
height: 100,
backgroundColor: '#463744',
display: 'flex',
alignItems: 'center'
},
heading: {
color: 'white',
fontSize: 40,
paddingLeft: 100
}
}
export default withAuthenticator(App, { includeGreetings: true });
<header>
<img alt="logo" src="{logo}">
<h1>Welcome to React</h1>
</header>
<p>
To get started, edit <code>src/App.js</code> and save to reload.
</p>
<button>Record Event</button>
);
}
}
export default withAuthenticator(App);