Skip to content

Commit

Permalink
Update Supabase library version in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
jordienr committed Jun 11, 2024
1 parent 0ba6d94 commit 44c6290
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 8 deletions.
3 changes: 3 additions & 0 deletions apps/web/app/pub/themes/default/post-dark.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@



2 changes: 1 addition & 1 deletion apps/web/app/pub/themes/instrument/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function InstrumentHome({ posts, blog, disableLinks }: BlogHomeProps) {
</header>
<div className="m-3 flex gap-1">
<div className="h-1 w-60 -skew-x-[30deg] bg-orange-600"></div>
<div className="h-1 w-6 -skew-x-[30deg] bg-orange-600"></div>
<div className="h-1 w-2 -skew-x-[30deg] bg-orange-600"></div>
<div className="h-1 w-2 -skew-x-[30deg] bg-orange-600"></div>
</div>
<main>
Expand Down
3 changes: 2 additions & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"@radix-ui/react-tooltip": "^1.0.7",
"@stripe/react-stripe-js": "^2.4.0",
"@stripe/stripe-js": "^2.4.0",
"@supabase/ssr": "^0.1.0",
"@supabase/gotrue-js": "^2.62.2",
"@supabase/ssr": "^0.3.0",
"@supabase/supabase-js": "^2.43.4",
"@t3-oss/env-nextjs": "^0.2.1",
"@tailwindcss/typography": "^0.5.9",
Expand Down
12 changes: 7 additions & 5 deletions apps/web/src/pages/reset-password.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ export default function ResetPassword() {
const form = e.currentTarget;
const email = form.email.value;

const url = new URL(window.location.href);
const url = process.env.NEXT_PUBLIC_BASE_URL;

const { data, error } = await supabase.auth.resetPasswordForEmail(email, {
redirectTo: `${url.origin}/reset-password-confirmation`,
redirectTo: `${url || ""}/reset-password-confirmation`,
});

if (error) {
Expand All @@ -44,7 +44,9 @@ export default function ResetPassword() {
<p className="text-slate-500">
We have sent you a link to reset your password.
</p>
<Link href="https://gmail.com">Open gmail</Link>
<Link target="_blank" href="https://gmail.com">
Open gmail
</Link>
</div>
</>
);
Expand All @@ -61,9 +63,9 @@ export default function ResetPassword() {
We will send you a link to reset your password.
</p>
{loading ? (
<p>
<div>
<Spinner />
</p>
</div>
) : (
<>
<Label htmlFor="email">Email</Label>
Expand Down
23 changes: 22 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 44c6290

Please sign in to comment.