extract useSubscription to core/hooks
This commit is contained in:
parent
20df3dc3ac
commit
f11c7d3723
@ -3,10 +3,10 @@ import { useQuery, useMutation, useSession } from "blitz";
|
||||
|
||||
import type { Subscription } from "db";
|
||||
import { SubscriptionStatus } from "db";
|
||||
import getSubscription from "../queries/get-subscription";
|
||||
import usePaddle from "./use-paddle";
|
||||
import useCurrentUser from "../../core/hooks/use-current-user";
|
||||
import updateSubscription from "../mutations/update-subscription";
|
||||
import getSubscription from "app/settings/queries/get-subscription";
|
||||
import updateSubscription from "app/settings/mutations/update-subscription";
|
||||
import usePaddle from "app/settings/hooks/use-paddle";
|
||||
import useCurrentUser from "app/core/hooks/use-current-user";
|
||||
|
||||
type Params = {
|
||||
initialData?: Subscription;
|
@ -2,7 +2,7 @@ import { HiCheck } from "react-icons/hi";
|
||||
import * as Panelbear from "@panelbear/panelbear-js";
|
||||
import clsx from "clsx";
|
||||
|
||||
import useSubscription from "../../hooks/use-subscription";
|
||||
import useSubscription from "app/core/hooks/use-subscription";
|
||||
|
||||
export default function Plans() {
|
||||
const { hasActiveSubscription, subscription, subscribe, changePlan } = useSubscription();
|
||||
|
@ -2,7 +2,7 @@ import type { BlitzPage } from "blitz";
|
||||
import { GetServerSideProps, getSession, Routes } from "blitz";
|
||||
|
||||
import db, { Subscription, SubscriptionStatus } from "db";
|
||||
import useSubscription from "../../hooks/use-subscription";
|
||||
import useSubscription from "app/core/hooks/use-subscription";
|
||||
import usePaymentsHistory from "../../hooks/use-payments-history";
|
||||
import SettingsLayout from "../../components/settings-layout";
|
||||
import SettingsSection from "../../components/settings-section";
|
||||
|
Loading…
Reference in New Issue
Block a user