Skip to content

Commit

Permalink
Fix tsc issues
Browse files Browse the repository at this point in the history
  • Loading branch information
hthr-lee committed Dec 13, 2024
1 parent 34c4aa3 commit 5f7778b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/features/hero-banner/HeroBanner.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Box, Grid, GridItem, Heading, Button, Text } from '@chakra-ui/react';
import { useContentfulInspectorMode } from '@contentful/live-preview/react';
import styled from '@emotion/styled';
import { useRouter } from 'next/router';
import { useEffect, useRef, useState, useContext } from 'react';
import { useEffect, useState, useContext } from 'react';

import { CtfImage } from '../contentful/ctf-image';

Expand All @@ -28,7 +27,7 @@ export const HeroBanner = ({
sys: { id: entryId },
}: PageLandingFieldsFragment) => {
const inspectorProps = useContentfulInspectorMode({ entryId });
const { demoExperimentMode, experimentVariant, userId } = useContext(ExperimentContext);
const { userId } = useContext(ExperimentContext);
const [hero, setHero] = useState<Hero | null>(null);

useEffect(() => {
Expand Down Expand Up @@ -65,7 +64,7 @@ export const HeroBanner = ({
</GridItem>
{hero && (
<StyledGridItem area={'hero'} zIndex={0}>
{hero.image && hero.image.url && <CtfImage {...hero.image} />}
{hero.image && hero.image.url && <CtfImage {...hero.image} __typename="Asset" />}
<Box css={{ position: 'absolute', top: '50%', left: '20%' }}>
<Box css={{ paddingTop: '20px', paddingBottom: '20px' }}>
<Text>{hero?.preHeadline}</Text>
Expand Down
1 change: 1 addition & 0 deletions src/components/templates/header/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export const Header = (props: BoxProps) => {
w="144px">
<Link href="/" title={t('common.homepage')}>
<Image
alt="amp-logo"
src={
'https://amplistore.wpengine.com/wp-content/themes/amplistore-dist/assets/images/amplitude-logo-white.jpg'
}
Expand Down

0 comments on commit 5f7778b

Please sign in to comment.