-
Notifications
You must be signed in to change notification settings - Fork 371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: custom OIDC provider #213
Conversation
} from 'react'; | ||
import { BaseProps } from '../@types/common'; | ||
import { Auth } from 'aws-amplify'; | ||
import { Button, Text, Loader } from '@aws-amplify/ui-react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AmplifyUIはAuthenticator以外利用していないので、他の画面に合わせて利用しないように修正をお願いします。
(ログイン画面なのであえてAmplifyUIを使ったのかもしれませんが、できればメインの画面に合わせたいです)
Loaderは以下のソースを再利用できる形に変えると良さそうです!
<div className="flex animate-spin items-center justify-center p-4"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amplify UI使わないよう変更しました!
return ( | ||
<> | ||
{loading ? ( | ||
<div className="grid grid-cols-1 justify-items-center gap-4"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1項目しかないので、grid
ではなくflex
で良いと思います。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flexに統一しました!
<Button | ||
variation="primary" | ||
onClick={() => signIn()} | ||
className="mt-6 w-60"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!!
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.