Skip to content

Commit

Permalink
Merge branches 'issue-113' and 'issue-113' of github.com:codelitdev/m…
Browse files Browse the repository at this point in the history
…edialit into issue-113
  • Loading branch information
Rajat Saxena committed Mar 21, 2024
2 parents c155c75 + 3ba2a42 commit c109412
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 c109412

Please sign in to comment.