From 100c3dac4f5141e813453fad0169befe6108e3b8 Mon Sep 17 00:00:00 2001 From: Ollie Halliday <22655069+Hallidayo@users.noreply.github.com> Date: Thu, 14 Sep 2023 19:55:42 +0100 Subject: [PATCH 1/2] added Container component --- packages/react/src/components/Auth/Auth.tsx | 18 ++-- .../Auth/interfaces/ForgottenPassword.tsx | 84 ++++++++++--------- 2 files changed, 53 insertions(+), 49 deletions(-) diff --git a/packages/react/src/components/Auth/Auth.tsx b/packages/react/src/components/Auth/Auth.tsx index 6c5234bc..af9a2fe1 100644 --- a/packages/react/src/components/Auth/Auth.tsx +++ b/packages/react/src/components/Auth/Auth.tsx @@ -168,14 +168,16 @@ function Auth({ ) case VIEWS.FORGOTTEN_PASSWORD: return ( - + + + ) case VIEWS.MAGIC_LINK: diff --git a/packages/react/src/components/Auth/interfaces/ForgottenPassword.tsx b/packages/react/src/components/Auth/interfaces/ForgottenPassword.tsx index 68b574b4..8d1e4f86 100644 --- a/packages/react/src/components/Auth/interfaces/ForgottenPassword.tsx +++ b/packages/react/src/components/Auth/interfaces/ForgottenPassword.tsx @@ -48,49 +48,51 @@ function ForgottenPassword({ return (
- -
- - ) => - setEmail(e.target.value) - } - appearance={appearance} - /> -
- - {showLinks && ( - ) => { - e.preventDefault() - setAuthView(VIEWS.SIGN_IN) - }} + + +
+ + ) => + setEmail(e.target.value) + } + appearance={appearance} + /> +
+ + {showLinks && ( + ) => { + e.preventDefault() + setAuthView(VIEWS.SIGN_IN) + }} + appearance={appearance} + > + {i18n?.sign_in?.link_text} + + )} + {message && {message}} + {error && ( + + {error} + + )} +
) From 8884598f4158329bb6d20f6e6f72bdb092326fa1 Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Sun, 17 Sep 2023 11:59:16 +0000 Subject: [PATCH 2/2] Add changeset file to bump the package version --- .changeset/selfish-crews-tie.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/selfish-crews-tie.md diff --git a/.changeset/selfish-crews-tie.md b/.changeset/selfish-crews-tie.md new file mode 100644 index 00000000..0946fd7c --- /dev/null +++ b/.changeset/selfish-crews-tie.md @@ -0,0 +1,5 @@ +--- +'@supabase/auth-ui-react': patch +--- + +Fix view layout alignment