Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
fix: random npubs
Browse files Browse the repository at this point in the history
  • Loading branch information
abhiShandy committed Mar 20, 2023
1 parent 52c4788 commit 83b83be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions client/src/lib/fake/index.ts
Expand Up @@ -6,7 +6,7 @@ export const products: Product[] = [
{
id: 1,
title: "Earthen Bottle",
seller: { npub: "npub" + faker.datatype.string(32) },
seller: { npub: "npub" + faker.random.alphaNumeric(59) },
imageSrc:
"https://tailwindui.com/img/ecommerce-images/category-page-04-image-card-01.jpg",
imageAlt:
Expand All @@ -15,7 +15,7 @@ export const products: Product[] = [
{
id: 2,
title: "Nomad Tumbler",
seller: { npub: "npub" + faker.datatype.string(32) },
seller: { npub: "npub" + faker.random.alphaNumeric(59) },
imageSrc:
"https://tailwindui.com/img/ecommerce-images/category-page-04-image-card-02.jpg",
imageAlt:
Expand All @@ -24,7 +24,7 @@ export const products: Product[] = [
{
id: 3,
title: "Focus Paper Refill",
seller: { npub: "npub" + faker.datatype.string(32) },
seller: { npub: "npub" + faker.random.alphaNumeric(59) },
imageSrc:
"https://tailwindui.com/img/ecommerce-images/category-page-04-image-card-03.jpg",
imageAlt:
Expand All @@ -33,7 +33,7 @@ export const products: Product[] = [
{
id: 4,
title: "Machined Mechanical Pencil",
seller: { npub: "npub" + faker.datatype.string(32) },
seller: { npub: "npub" + faker.random.alphaNumeric(59) },
imageSrc:
"https://tailwindui.com/img/ecommerce-images/category-page-04-image-card-04.jpg",
imageAlt:
Expand Down
3 changes: 2 additions & 1 deletion client/src/lib/molecules/ProductOverview.stories.tsx
@@ -1,6 +1,7 @@
import ProductOverview from "./ProductOverview";

import { ComponentStory, ComponentMeta } from "@storybook/react";
import { faker } from "@faker-js/faker";

const meta: ComponentMeta<typeof ProductOverview> = {
title: "ProductOverview",
Expand All @@ -17,7 +18,7 @@ export const Default = Template.bind({});
Default.args = {
product: {
title: "Everyday Ruck Snack",
seller: { npub: "npub123" },
seller: { npub: "npub" + faker.random.alphaNumeric(59) },
description:
"Don't compromise on snack-carrying capacity with this lightweight and spacious bag. The drawstring top keeps all your favorite chips, crisps, fries, biscuits, crackers, and cookies secure.",
imageSrc:
Expand Down

0 comments on commit 83b83be

Please sign in to comment.