diff --git a/components/Settings.tsx b/components/Settings.tsx index b1ce7f14..70f5af3e 100644 --- a/components/Settings.tsx +++ b/components/Settings.tsx @@ -1,4 +1,4 @@ -import Link from 'next/link'; +import Link from "next/link"; import { CreditCardIcon, UserIcon, CodeIcon, KeyIcon, UserGroupIcon } from "@heroicons/react/solid"; import { useRouter } from "next/router"; @@ -10,60 +10,59 @@ export default function SettingsShell(props) { const router = useRouter(); const tabs = [ - { name: "Profile", href: "/settings/profile", icon: UserIcon, current: router.pathname == "/settings/profile" }, - { name: "Password", href: "/settings/password", icon: KeyIcon, current: router.pathname == "/settings/password" }, + { + name: "Profile", + href: "/settings/profile", + icon: UserIcon, + current: router.pathname == "/settings/profile", + }, + { + name: "Password", + href: "/settings/password", + icon: KeyIcon, + current: router.pathname == "/settings/password", + }, { name: "Embed", href: "/settings/embed", icon: CodeIcon, current: router.pathname == "/settings/embed" }, - { name: "Teams", href: "/settings/teams", icon: UserGroupIcon, current: router.pathname == "/settings/teams" }, - { name: "Billing", href: "/settings/billing", icon: CreditCardIcon, current: router.pathname == "/settings/billing" }, + { + name: "Teams", + href: "/settings/teams", + icon: UserGroupIcon, + current: router.pathname == "/settings/teams", + }, + { + name: "Billing", + href: "/settings/billing", + icon: CreditCardIcon, + current: router.pathname == "/settings/billing", + }, ]; return (
-
-
- - -
-
-
- -
-
+
+
{props.children}
diff --git a/pages/settings/billing.tsx b/pages/settings/billing.tsx index 70409176..1d28e233 100644 --- a/pages/settings/billing.tsx +++ b/pages/settings/billing.tsx @@ -1,16 +1,10 @@ -import Head from 'next/head'; -import Shell from '../../components/Shell'; -import SettingsShell from '../../components/Settings'; -import prisma from '../../lib/prisma'; -import {getSession, useSession} from 'next-auth/client'; - -export default function Billing(props) { - const [ session, loading ] = useSession(); - - if (loading) { - return
; - } +import Head from "next/head"; +import Shell from "../../components/Shell"; +import SettingsShell from "../../components/Settings"; +import prisma from "../../lib/prisma"; +import { getSession } from "next-auth/client"; +export default function Billing() { return ( @@ -18,10 +12,6 @@ export default function Billing(props) {
-
-

Change your Subscription

-

Cancel, update credit card or change plan

-