Skip to content

Commit

Permalink
Merge pull request Weaverse#134 from Weaverse/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
hta218 authored Jun 9, 2024
2 parents 0faef17 + 5ed1b66 commit a58607b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions app/sections/ali-reviews/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,12 @@ let AliReviewSection = forwardRef<HTMLElement, AliReviewsProps>(

export type AliReviewsLoaderData = Awaited<ReturnType<typeof loader>>;

export let loader = async ({ weaverse }: ComponentLoaderArgs) => {
export let loader = async ({ weaverse }: ComponentLoaderArgs<{}, Env>) => {
let res = await fetch(
"https://widget-hub-api.alireviews.io/api/public/reviews",
{
method: "GET",
headers: {
// @ts-ignore
Authorization: `Bearer ${weaverse.env.ALI_REVIEWS_API_KEY}`,
"Content-Type": "application/json",
},
Expand Down
1 change: 0 additions & 1 deletion app/weaverse/create-weaverse.server.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { CreateWeaverseClientArgs } from "@weaverse/hydrogen";
import { WeaverseClient } from "@weaverse/hydrogen";

import { components } from "~/weaverse/components";
import { themeSchema } from "~/weaverse/schema.server";
import type { AppLoadContext } from "@shopify/remix-oxygen";
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@weaverse/pilot",
"private": true,
"sideEffects": false,
"version": "2.6.13",
"version": "2.6.14",
"type": "module",
"author": "Weaverse",
"scripts": {
Expand Down Expand Up @@ -31,7 +31,7 @@
"@shopify/cli-hydrogen": "^8.1.0",
"@shopify/hydrogen": "^2024.4.3",
"@shopify/remix-oxygen": "^2.0.4",
"@weaverse/hydrogen": "^3.1.10",
"@weaverse/hydrogen": "^3.1.11",
"class-variance-authority": "^0.7.0",
"clsx": "2.1.1",
"cross-env": "7.0.3",
Expand Down Expand Up @@ -83,4 +83,4 @@
"engines": {
"node": ">=18.0.0"
}
}
}

0 comments on commit a58607b

Please sign in to comment.