Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix lint errors
Browse files Browse the repository at this point in the history
shahednasser committed Nov 12, 2024
1 parent 466e22f commit 4f82c36
Showing 8 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -55,7 +55,7 @@ import { DetailWidgetProps, HttpTypes } from "@medusajs/framework/types"
const ProductWidget = () => {
const { data, isLoading } = useQuery({
queryFn: () => sdk.admin.product.list(),
queryKey: ["products"]
queryKey: ["products"],
})

return (
@@ -95,17 +95,17 @@ import { sdk } from "../lib/config"
import { DetailWidgetProps, HttpTypes } from "@medusajs/framework/types"

const ProductWidget = ({
data: productData
data: productData,
}: DetailWidgetProps<HttpTypes.AdminProduct>) => {
const { mutateAsync } = useMutation({
mutationFn: (payload: HttpTypes.AdminUpdateProduct) =>
sdk.admin.product.update(productData.id, payload),
onSuccess: () => alert("updated product")
onSuccess: () => alert("updated product"),
})

const handleUpdate = () => {
mutateAsync({
title: "New Product Title"
title: "New Product Title",
})
}

Original file line number Diff line number Diff line change
@@ -57,7 +57,7 @@ import {
LoaderOptions,
} from "@medusajs/framework/types"
import {
ContainerRegistrationKeys
ContainerRegistrationKeys,
} from "@medusajs/framework/utils"

export default async function helloWorldLoader({
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ module.exports = defineConfig({
capitalize: true,
},
},
]
],
})
```

Original file line number Diff line number Diff line change
@@ -145,7 +145,7 @@ const myWorkflow = createWorkflow(
function (input: WorkflowInput) {
const message = transform(
{
input
input,
},
(data) => data.input.message || "hello"
)
Original file line number Diff line number Diff line change
@@ -179,7 +179,7 @@ const myWorkflow = createWorkflow(
"hello-world",
function (input) {
validateHasStr1({
input
input,
})

// workflow continues its execution only if
8 changes: 4 additions & 4 deletions www/apps/book/app/learn/basics/modules/page.mdx
Original file line number Diff line number Diff line change
@@ -135,8 +135,8 @@ module.exports = defineConfig({
modules: [
{
resolve: "./src/modules/hello",
}
]
},
],
})
```

@@ -212,11 +212,11 @@ export async function GET(
)

const my_custom = await helloModuleService.createMyCustoms({
name: "test"
name: "test",
})

res.json({
my_custom
my_custom,
})
}
```
Original file line number Diff line number Diff line change
@@ -105,8 +105,8 @@ module.exports = defineConfig({
modules: [
{
resolve: "./src/modules/brand",
}
]
},
],
})
```

Original file line number Diff line number Diff line change
@@ -192,7 +192,7 @@ module.exports = defineConfig({
apiKey: process.env.BRAND_API_KEY || "temp",
},
},
]
],
})
```

0 comments on commit 4f82c36

Please sign in to comment.