Skip to content

Commit

Permalink
Merge pull request #330 from open-sauced/feat/upgrade-sanity-studio
Browse files Browse the repository at this point in the history
feat: upgrade sanity studio
  • Loading branch information
BekahHW authored Jul 1, 2024
2 parents cc61464 + 480fea1 commit 89b1c28
Show file tree
Hide file tree
Showing 10 changed files with 12,501 additions and 12,886 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type TeamsFeaturesProps = {
export default function StudentsFeatures({ features } : TeamsFeaturesProps) {
return (
<SectionWrapper pbs={0}>
{ features!.map((feature) => <StudentFeature feature={feature!} />) }
{ features!.map((feature, index) => <StudentFeature key={feature._key || index} feature={feature!} />) }
<EndingLine />
</SectionWrapper>
);
Expand Down
6 changes: 3 additions & 3 deletions components/sections/home-page/features/TeamsFeatures.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function TeamsFeatures({ topUseCase, features } : TeamsFeaturesPr
return (
<SectionWrapper pbs={0}>
{ topUseCase && <TopUseCase topUseCase={topUseCase} /> }
{ features!.map((feature) => <TeamFeature feature={feature!} />) }
{ features!.map((feature, index) => <TeamFeature key={feature._key || index} feature={feature!} />) }
<EndingLine />
</SectionWrapper>
);
Expand Down Expand Up @@ -65,8 +65,8 @@ function TopUseCase({ topUseCase } : { topUseCase: SanityTeamsPage['topUseCase']
transition={{ duration: 0.7, delay: 0.2, ease: 'easeInOut' }}
>
<div className="flex flex-col gap-8 tablet:gap-0 tablet:flex-row justify-between w-full">
{ subsections!.map((section) => (
<section className="items-start flex flex-col gap-4">
{ subsections!.map((section, index) => (
<section key={section._key || index} className="items-start flex flex-col gap-4">
<span className="text-xl font-semibold">
<DecoratedText content={section.heading!} />
</span>
Expand Down
2 changes: 1 addition & 1 deletion components/sections/lunchweek/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const Hero = () => {
</div>
<div className="pt-4 pb-6">
<p className="text-xl font-normal opacity-80">
Join us everyday this week to see what we've been cookin' up.
Join us everyday this week to see what we&apos;ve been cookin&apos; up.
</p>
</div>
<PHBadgeDark />
Expand Down
Loading

0 comments on commit 89b1c28

Please sign in to comment.