From 31697cb29b36115b8aa3c5bd439c23b0dd9d9fb6 Mon Sep 17 00:00:00 2001 From: Ben Lopata Date: Thu, 17 Oct 2024 16:21:15 -0500 Subject: [PATCH] Remove text input for support, misc formatting --- .../settings/SubscriptionSettings.tsx | 22 ++--- www/components/settings/SupportSettings.tsx | 81 ++++++------------- 2 files changed, 34 insertions(+), 69 deletions(-) diff --git a/www/components/settings/SubscriptionSettings.tsx b/www/components/settings/SubscriptionSettings.tsx index dfdb2b6..ff11c75 100644 --- a/www/components/settings/SubscriptionSettings.tsx +++ b/www/components/settings/SubscriptionSettings.tsx @@ -1,15 +1,15 @@ -"use client"; +'use client'; -import { useState } from "react"; -import { useRouter } from "next/navigation"; +import { useState } from 'react'; +import { useRouter } from 'next/navigation'; -import { createStripePortal } from "@/utils/stripe/actions"; -import { Tables } from "@/utils/database.types"; +import { createStripePortal } from '@/utils/stripe/actions'; +import { Tables } from '@/utils/database.types'; -import PriceCard from "@/components/PriceCard"; -type Subscription = Tables<"subscriptions">; -type Product = Tables<"products">; -type Price = Tables<"prices">; +import PriceCard from '@/components/PriceCard'; +type Subscription = Tables<'subscriptions'>; +type Product = Tables<'products'>; +type Price = Tables<'prices'>; interface Props { subscription: Subscription | null; @@ -33,7 +33,7 @@ export default function SubscriptionManager({ subscription, products }: Props) { router.push(url); } } catch (error) { - console.error("Error:", error); + console.error('Error:', error); } setLoading(false); }; @@ -46,7 +46,7 @@ export default function SubscriptionManager({ subscription, products }: Props) {

Subscription Status

- {subscription ? "Active Subscription" : "No Active Subscription"} + {subscription ? 'Active Subscription' : 'No Active Subscription'}

{subscription ? (