Skip to content

Commit

Permalink
Fixed hydration error
Browse files Browse the repository at this point in the history
  • Loading branch information
ravirajput10 committed Mar 21, 2024
1 parent b8f755b commit 3ba2a42
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions apps/web/app/account/billing/resume-subscription-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ export default function ResumeSubscriptionButton({
</Submit>

{currentPlan !== "Basic" && subscriptionStatus === "cancelled" && (
<p className="text-center text-sm text-slate-500">
<p
className="text-center text-sm text-slate-500"
suppressHydrationWarning={true}
>
Expires at{" "}
{new Date(expiresAt).toLocaleDateString(undefined, {
day: "numeric",
Expand Down Expand Up @@ -77,12 +80,12 @@ function Submit({
if (currentPlan === "Basic" && subscriptionStatus === "cancelled") {
buttonText = "Current plan";
className =
"pointer-events-none w-full mb-6 bg-white hover:bg-white !text-muted-foreground border border-muted-foreground";
"pointer-events-none w-full mb-5 bg-white hover:bg-white !text-muted-foreground border border-muted-foreground";
}

return (
<Button
className={`bg-red-500 hover:bg-red-700 w-full text-white mb-2 ${className}`}
className={`bg-red-500 hover:bg-red-700 w-full text-white mb-1 ${className}`}
type="submit"
variant="secondary"
disabled={status.pending}
Expand Down

0 comments on commit 3ba2a42

Please sign in to comment.