Skip to content

Instantly share code, notes, and snippets.

@mikehibm
Created April 17, 2020 04:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikehibm/726f0f97ba2803641481d31150aefd15 to your computer and use it in GitHub Desktop.
Save mikehibm/726f0f97ba2803641481d31150aefd15 to your computer and use it in GitHub Desktop.
import React from 'react';
import Amplify from 'aws-amplify';
import { AmplifyAuthenticator, AmplifySignOut } from '@aws-amplify/ui-react';
import awsconfig from '../aws-exports';
import { MyLayout } from '../components/MyLayout';
Amplify.configure(awsconfig);
const contentStyle = {
paddingLeft: '0',
paddingRight: '0',
textAlign: 'center',
};
export default () => (
<MyLayout contentStyle={contentStyle}>
<AmplifyAuthenticator>
<h2>ログインしました!</h2>
<AmplifySignOut />
</AmplifyAuthenticator>
</MyLayout>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment