Skip to content

Commit

Permalink
Make sure that the columns are correctly setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
kokofixcomputers authored Oct 11, 2024
1 parent 574155e commit 4282094
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/scripts/components/store/OverviewContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ export default () => {
const username = useStoreState((state) => state.user.data!.username);
const coupons = useStoreState((state) => state.settings.data!.coupons);

// Determine the grid class based on the presence of coupons
const gridClass = coupons ? 'lg:grid lg:grid-cols-4' : 'lg:grid lg:grid-cols-3';

return (
<PageContentBlock title={'Storefront Overview'}>
<div className={'flex flex-row items-center justify-between mt-10'}>
Expand All @@ -21,7 +24,7 @@ export default () => {
)}
<ResourceBar className={'w-full lg:w-3/4'} />
</div>
<div className={'lg:grid lg:grid-cols-4 gap-8 my-10'}>
<div className={`${gridClass} gap-8 my-10`}>
<StoreBanner
title={'Want to create a server?'}
className={'bg-storeone'}
Expand Down

0 comments on commit 4282094

Please sign in to comment.