Skip to content

Commit

Permalink
fix: only show ThirdParty Login Providers
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyLv committed Mar 5, 2023
1 parent a8f272b commit c5da64d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 5 additions & 2 deletions components/sign-in-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import React, {
} from "react";
import Modal from "~/components/shared/modal";
import Image from "next/image";
import { BASE_DOMAIN } from "~/utils/constants";
import { BASE_DOMAIN, LOGIN_LIMIT_COUNT } from "~/utils/constants";

const SignInModal = ({
showSignInModal,
Expand All @@ -33,13 +33,16 @@ const SignInModal = ({
height={20}
/>
</a>
<h3 className="font-display text-2xl font-bold">登录</h3>
<h3 className="font-display text-2xl font-bold">登录 BibiGPT</h3>
<h4>(每天都赠送 {LOGIN_LIMIT_COUNT} 次哦)</h4>
<p className="text-sm text-pink-400">Prompt, Publish, Profit</p>
</div>

<div className="flex flex-col space-y-4 bg-gray-50 px-4 py-8 md:px-16">
<Auth
supabaseClient={supabaseClient}
onlyThirdPartyProviders
// magicLink
providers={[
"notion",
"github",
Expand Down
4 changes: 3 additions & 1 deletion utils/constants.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
export const BASE_DOMAIN = "https://b.jimmylv.cn";
export const CHECKOUT_URL =
"https://jimmylv.lemonsqueezy.com/checkout/buy/36ed8a3e-a19c-42af-aab7-46df51a14d1b";
export const RATE_LIMIT_COUNT = 7;
export const LOGIN_LIMIT_COUNT = 5;
export const FREE_LIMIT_COUNT = 2;
export const RATE_LIMIT_COUNT = LOGIN_LIMIT_COUNT + FREE_LIMIT_COUNT;

export const FADE_IN_ANIMATION_SETTINGS = {
initial: { opacity: 0 },
Expand Down

1 comment on commit c5da64d

@vercel
Copy link

@vercel vercel bot commented on c5da64d Mar 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.