fix: logo changed to import in products data file
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
import Logo from '@/components/Logo';
|
import Logo from '@/components/Logo';
|
||||||
import { Box } from '@mui/material';
|
import { Box } from '@mui/material';
|
||||||
import type { ReactElement } from 'react';
|
import type { ReactElement } from 'react';
|
||||||
|
import ClubLogo from '@/assets/club-logo.png';
|
||||||
|
import BookLogo from '@/assets/book-logo.png';
|
||||||
|
|
||||||
export interface Product {
|
export interface Product {
|
||||||
id: string;
|
id: string;
|
||||||
@@ -19,7 +21,7 @@ export const productsData: Product[] = [
|
|||||||
LogoComponent: (
|
LogoComponent: (
|
||||||
<Box
|
<Box
|
||||||
component="img"
|
component="img"
|
||||||
src="/src/assets/club-logo.png"
|
src={ClubLogo}
|
||||||
sx={{ width: 69, aspectRatio: '1 / 1', objectFit: 'contain' }}
|
sx={{ width: 69, aspectRatio: '1 / 1', objectFit: 'contain' }}
|
||||||
/>
|
/>
|
||||||
), // Reference the component
|
), // Reference the component
|
||||||
@@ -33,7 +35,7 @@ export const productsData: Product[] = [
|
|||||||
LogoComponent: (
|
LogoComponent: (
|
||||||
<Box
|
<Box
|
||||||
component="img"
|
component="img"
|
||||||
src="/src/assets/book-logo.png"
|
src={BookLogo}
|
||||||
sx={{ width: 69, aspectRatio: '1 / 1', objectFit: 'contain', px: 0.5 }}
|
sx={{ width: 69, aspectRatio: '1 / 1', objectFit: 'contain', px: 0.5 }}
|
||||||
/>
|
/>
|
||||||
), // Reference the component
|
), // Reference the component
|
||||||
|
|||||||
Reference in New Issue
Block a user