feat: increase the per user limit of generations to 1000

This commit is contained in:
James Murdza 2024-09-06 14:19:14 -07:00
parent 31d74ddc2d
commit 0c6b2b0dfb
2 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ export default function GenerateInput({
}: {
regenerate?: boolean
}) => {
if (user.generations >= 10) {
if (user.generations >= 1000) {
toast.error("You reached the maximum # of generations.")
return
}

View File

@ -42,13 +42,13 @@ export default function UserButton({ userData }: { userData: User }) {
<div className="py-1.5 px-2 w-full flex flex-col items-start text-sm">
<div className="flex items-center">
<Sparkles className={`h-4 w-4 mr-2 text-indigo-500`} />
AI Usage: {userData.generations}/10
AI Usage: {userData.generations}/1000
</div>
<div className="rounded-full w-full mt-2 h-2 overflow-hidden bg-secondary">
<div
className="h-full bg-indigo-500 rounded-full"
style={{
width: `${(userData.generations * 100) / 10}%`,
width: `${(userData.generations * 100) / 1000}%`,
}}
/>
</div>