Skip to content

Commit a443f95

Browse files
committed
Updating packages // fixing type imports // Fixing route handler type
1 parent e82f582 commit a443f95

File tree

4 files changed

+56
-441
lines changed

4 files changed

+56
-441
lines changed

shopify/usage-subscription-template/api/routes/GET-confirmation-callback.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { RouteContext } from "gadget-server";
1+
import { RouteHandler } from "gadget-server";
22

3-
export default async function route({
3+
const route: RouteHandler = async ({
44
request,
55
reply,
66
api,
77
logger,
88
connections,
9-
}: RouteContext) {
9+
}) => {
1010
const { shop_id, plan_id, charge_id } = request.query as {
1111
shop_id: string;
1212
plan_id: string;
@@ -47,4 +47,4 @@ export default async function route({
4747
await reply.redirect(
4848
`https://${shop.domain}/admin/apps/${shop.installedViaApiKey}`
4949
);
50-
}
50+
};

shopify/usage-subscription-template/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@
99
},
1010
"dependencies": {
1111
"@gadget-client/usage-subscription-template": "link:.gadget/client",
12-
"@gadgetinc/react": "^0.18.0",
13-
"@gadgetinc/react-shopify-app-bridge": "^0.16.4",
12+
"@gadgetinc/react": "^0.18.4",
13+
"@gadgetinc/react-shopify-app-bridge": "^0.16.6",
1414
"@shopify/app-bridge-react": "^4.1.1",
1515
"@shopify/polaris": "^13.9.0",
1616
"@shopify/polaris-icons": "^9.3.0",
17-
"currency-converter-lt2": "^2.0.0-beta.0",
1817
"date-fns": "^2.30.0",
1918
"fastify": "^4.24.2",
2019
"gadget-server": "link:.gadget/server",

shopify/usage-subscription-template/web/providers/ShopProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { trialCalculations } from "../utilities";
55
import { Banner, Page, Text } from "@shopify/polaris";
66
import BillingPage from "../routes/billing";
77
import { StyledSpinner } from "../components";
8-
import { GadgetRecord } from "@gadget-client/usage-subscription-template";
8+
import type { GadgetRecord } from "@gadget-client/usage-subscription-template";
99

1010
type ShopContextType = {
1111
shop?: GadgetRecord<{

0 commit comments

Comments
 (0)