mirror of
https://github.com/harivansh-afk/GymSupps.git
synced 2026-04-15 05:02:10 +00:00
hotfix: errors
This commit is contained in:
parent
4e59c6866d
commit
cbcb3aa87e
3 changed files with 55 additions and 55 deletions
|
|
@ -1,58 +1,58 @@
|
|||
import { ShopifyProduct } from '../types/shopify';
|
||||
|
||||
export const mockProducts: ShopifyProduct[] = [
|
||||
{
|
||||
id: '1',
|
||||
title: 'Whey Protein Isolate',
|
||||
description: 'Premium whey protein isolate for optimal muscle recovery and growth.',
|
||||
handle: 'whey-protein-isolate',
|
||||
priceRange: {
|
||||
minVariantPrice: {
|
||||
amount: '49.99',
|
||||
currencyCode: 'USD'
|
||||
}
|
||||
{
|
||||
id: '1',
|
||||
title: 'Whey Protein Isolate',
|
||||
description: 'Premium whey protein isolate for optimal muscle recovery and growth.',
|
||||
handle: 'whey-protein-isolate',
|
||||
priceRange: {
|
||||
minVariantPrice: {
|
||||
amount: '49.99',
|
||||
currencyCode: 'USD'
|
||||
}
|
||||
},
|
||||
featuredImage: {
|
||||
url: 'https://images.unsplash.com/photo-1593095948071-474c5cc2989d?q=80&w=2670&auto=format&fit=crop',
|
||||
altText: 'Whey Protein Container',
|
||||
width: 800,
|
||||
height: 800
|
||||
}
|
||||
},
|
||||
featuredImage: {
|
||||
url: 'https://images.unsplash.com/photo-1593095948071-474c5cc2989d?q=80&w=2670&auto=format&fit=crop',
|
||||
altText: 'Whey Protein Container',
|
||||
width: 800,
|
||||
height: 800
|
||||
}
|
||||
},
|
||||
{
|
||||
id: '2',
|
||||
title: 'Pre-Workout Energy',
|
||||
description: 'Advanced pre-workout formula for enhanced performance and focus.',
|
||||
handle: 'pre-workout-energy',
|
||||
priceRange: {
|
||||
minVariantPrice: {
|
||||
amount: '39.99',
|
||||
currencyCode: 'USD'
|
||||
}
|
||||
{
|
||||
id: '2',
|
||||
title: 'Pre-Workout Energy',
|
||||
description: 'Advanced pre-workout formula for enhanced performance and focus.',
|
||||
handle: 'pre-workout-energy',
|
||||
priceRange: {
|
||||
minVariantPrice: {
|
||||
amount: '39.99',
|
||||
currencyCode: 'USD'
|
||||
}
|
||||
},
|
||||
featuredImage: {
|
||||
url: 'https://images.unsplash.com/photo-1594882645126-14020914d58d?q=80&w=2785&auto=format&fit=crop',
|
||||
altText: 'Pre-workout Container',
|
||||
width: 800,
|
||||
height: 800
|
||||
}
|
||||
},
|
||||
featuredImage: {
|
||||
url: 'https://images.unsplash.com/photo-1594882645126-14020914d58d?q=80&w=2785&auto=format&fit=crop',
|
||||
altText: 'Pre-workout Container',
|
||||
width: 800,
|
||||
height: 800
|
||||
{
|
||||
id: '3',
|
||||
title: 'BCAA Complex',
|
||||
description: 'Essential branched-chain amino acids for muscle support and recovery.',
|
||||
handle: 'bcaa-complex',
|
||||
priceRange: {
|
||||
minVariantPrice: {
|
||||
amount: '29.99',
|
||||
currencyCode: 'USD'
|
||||
}
|
||||
},
|
||||
featuredImage: {
|
||||
url: 'https://images.unsplash.com/photo-1579722820308-d74e571900a9?q=80&w=2670&auto=format&fit=crop',
|
||||
altText: 'BCAA Container',
|
||||
width: 800,
|
||||
height: 800
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: '3',
|
||||
title: 'BCAA Complex',
|
||||
description: 'Essential branched-chain amino acids for muscle support and recovery.',
|
||||
handle: 'bcaa-complex',
|
||||
priceRange: {
|
||||
minVariantPrice: {
|
||||
amount: '29.99',
|
||||
currencyCode: 'USD'
|
||||
}
|
||||
},
|
||||
featuredImage: {
|
||||
url: 'https://images.unsplash.com/photo-1579722820308-d74e571900a9?q=80&w=2670&auto=format&fit=crop',
|
||||
altText: 'BCAA Container',
|
||||
width: 800,
|
||||
height: 800
|
||||
}
|
||||
}
|
||||
];
|
||||
|
|
|
|||
6
src/env.d.ts
vendored
6
src/env.d.ts
vendored
|
|
@ -1,10 +1,10 @@
|
|||
/// <reference types="vite/client" />
|
||||
|
||||
interface ImportMetaEnv {
|
||||
readonly VITE_SHOPIFY_STORE_DOMAIN: string;
|
||||
readonly VITE_SHOPIFY_STOREFRONT_TOKEN: string;
|
||||
readonly VITE_SHOPIFY_STORE_DOMAIN: string;
|
||||
readonly VITE_SHOPIFY_STOREFRONT_TOKEN: string;
|
||||
}
|
||||
|
||||
interface ImportMeta {
|
||||
readonly env: ImportMetaEnv;
|
||||
readonly env: ImportMetaEnv;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,5 +3,5 @@ import { ShopifyProductGrid } from '../components/ShopifyProductGrid';
|
|||
import { mockProducts } from '../data/mockShopifyProducts';
|
||||
|
||||
export const ProductsPage: React.FC = () => {
|
||||
return <ShopifyProductGrid products={mockProducts} />;
|
||||
return <ShopifyProductGrid products={mockProducts} />;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue