Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix how fixtures are defined

Lukasz Szewczyk8e36b0dc0ed9
diff --git a/saleor/static/dashboard-next/home/fixtures.ts b/saleor/static/dashboard-next/home/fixtures.ts
index b889f7cee4..823026ab9c 100644
--- a/saleor/static/dashboard-next/home/fixtures.ts
+++ b/saleor/static/dashboard-next/home/fixtures.ts
@@ -1,4 +1,8 @@
-export const shop = (placeholderImage: string) => ({
+import { HomePageProps } from "./components/HomePage";
+
+export const shop: (placeholderImage: string) => HomePageProps = (
+ placeholderImage: string
+) => ({
activities: [
{
action: "published",
@@ -98,5 +102,6 @@ export const shop = (placeholderImage: string) => ({
variant: "Hardcover"
}
],
- userName: "John Smith"
+ userName: "John Smith",
+ onRowClick: () => undefined
});