diff --git a/src/sections/Gamma/GammaAlbum.jsx b/src/sections/Gamma/GammaAlbum.jsx index 3bafff4a..48794e15 100644 --- a/src/sections/Gamma/GammaAlbum.jsx +++ b/src/sections/Gamma/GammaAlbum.jsx @@ -17,29 +17,25 @@ const GammaAlbum = React.forwardRef((props, book) => { : {} } - const PageContent = ({ page, pageNumber}) => { - let divWrapperClassName = 'grid-wrapper' + const PageContentInventory = ({ page, pageNumber}) => { + let divWrapperClassName = 'grid-wrapper-left' if (pageNumber % 2 === 0) { // par - divWrapperClassName = 'grid-wrapperright' + divWrapperClassName = 'grid-wrapper-right' } return (
{page && page.map((item, index) => (
{ setCardInfo(true), setImageNumber(item) } : null} + onClick={() => { setCardInfo(true), setImageNumber(item) }} style={getStyle(item)} key={index} className='grid-item' > - { !showInventory && (paginationObj.user[item]?.stamped - ? - : )} + + { paginationObj.user[item]?.stamped && } - { showInventory && } - { showInventory && paginationObj.user[item]?.stamped && } - - { showInventory && paginationObj.user[item]?.quantity > 1 && + { paginationObj.user[item]?.quantity > 1 &&
X:{paginationObj.user[item]?.quantity}
} @@ -50,6 +46,36 @@ const GammaAlbum = React.forwardRef((props, book) => { ) } + const PageContentAlbum = ({ page, pageNumber}) => { + let divWrapperClassName = 'grid-wrapper-left-album' + if (pageNumber % 2 === 0) { // par + divWrapperClassName = 'grid-wrapper-right-album' + } + + return ( +
+ {page && page.map((item, index) => ( +
+ { paginationObj.user[item]?.stamped + ? + : + } +
)) + } +
+ ) + } + + const PageContent = ({ page, pageNumber}) => { + return showInventory + ? + : + } + return paginationObj ? (