Skip to content

Commit

Permalink
Updating to use deploy url on signup (#42)
Browse files Browse the repository at this point in the history
* Updating to use deploy url on signup

* Removed unneeded param

* Resolved build errors

* Merged

---------

Co-authored-by: root <root@MSI>
Co-authored-by: Abi <[email protected]>
  • Loading branch information
3 people authored Dec 23, 2023
1 parent 0bde84f commit b6fdab7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/components/Auth/Auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import ChangePassword from './ChangePassword'

type TAuthProps = {
view: string
redirectTo: string
}

export default function Auth({ view }: TAuthProps) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Auth/SignUp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function SignUp({ setState }: TSignUpProps) {
email: email,
password: password,
options: {
emailRedirectTo: import.meta.env.BASE_URL,
emailRedirectTo: import.meta.env.DEPLOY_URL,
},
})
if (!error) {
Expand Down
2 changes: 1 addition & 1 deletion src/views/AuthPages/ChangePasswordPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import AuthPageLayout from '@/components/Auth/AuthPageLayout'
const LoginPage = () => {
const ifSession = (
<div className="w-96 rounded-lg bg-orange-50 p-8">
<Auth redirectTo="/" view="changePassword" />
<Auth view="changePassword" />
</div>
)
const notSession = (
Expand Down
2 changes: 1 addition & 1 deletion src/views/AuthPages/LoginPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const LoginPage = () => {
)
const notSession = (
<div className="w-96 rounded-lg bg-orange-50 p-8">
<Auth view="signIn" redirectTo="/" />
<Auth view="signIn" />
</div>
)
return (
Expand Down

0 comments on commit b6fdab7

Please sign in to comment.