Skip to content

Commit

Permalink
switch to project images instead of project
Browse files Browse the repository at this point in the history
  • Loading branch information
ickynavigator committed Feb 24, 2024
1 parent 798bd51 commit ca6699a
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions src/app/(root)/projects/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const Page = async () => {
body,
profileStatus,
projectIssuer,
projectImage,
projectImages,
tags,
} = data;

Expand Down Expand Up @@ -109,17 +109,15 @@ const Page = async () => {
<Stack>
<CardSection>
<Carousel withControls={false}>
{[projectImage].map((i, ind) =>
i ? (
<CarouselSlide key={i.asset._ref}>
<Image
src={urlForImage(i)}
alt={`${name} - ${ind}`}
width="100%"
/>
</CarouselSlide>
) : null,
)}
{projectImages?.map(i => (
<CarouselSlide key={i.asset._ref}>
<Image
src={urlForImage(i)}
alt={`${name} - ${i._key}`}
width="100%"
/>
</CarouselSlide>
))}
</Carousel>
</CardSection>

Expand Down

0 comments on commit ca6699a

Please sign in to comment.