Skip to content

Commit a5e4ca2

Browse files
committed
Stop using Cover component in Hero to avoid Live Preview issue
1 parent f4439a6 commit a5e4ca2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

next/components/dynamic-zone/hero.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ export const Hero = ({
3636
as="h1"
3737
className="text-4xl md:text-4xl lg:text-8xl font-semibold max-w-7xl mx-auto text-center mt-6 relative z-10 py-6"
3838
>
39-
{heading.substring(0, heading.lastIndexOf(' '))}{' '}
40-
<Cover>{heading.split(' ').pop()}</Cover>
39+
{heading}
4140
</Heading>
4241
<Subheading className="text-center mt-2 md:mt-6 text-base md:text-xl text-muted max-w-3xl mx-auto relative z-10">
4342
{sub_heading}

0 commit comments

Comments
 (0)