Skip to content

Commit 7e4793e

Browse files
fix(Hero): update imports from Buttons
1 parent 051f51e commit 7e4793e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/Hero/CallToAction.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import * as React from "react"
2-
import Button, { IProps as ButtonProps } from "../Button"
32
import { MatomoEventOptions, trackCustomEvent } from "../../utils/matomo"
3+
import { Button, type IButtonProps } from "../Buttons"
44

5-
export type CallToActionProps = Omit<ButtonProps, "children" | "content"> & {
5+
export type CallToActionProps = Omit<IButtonProps, "children" | "content"> & {
66
content: React.ReactNode
77
matomo: MatomoEventOptions
88
}
@@ -12,7 +12,7 @@ export function CallToAction(props: CallToActionProps & { index: React.Key }) {
1212

1313
const handleClick = () => trackCustomEvent(matomo)
1414

15-
const buttonProps: ButtonProps = {
15+
const buttonProps: IButtonProps = {
1616
variant: index === 0 ? "solid" : "outline",
1717
isSecondary: index !== 0,
1818
flex: { base: 1, md: "initial" },

src/components/Hero/HomeHero/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as React from "react"
22
import { useTranslation } from "react-i18next"
33
import { Box, Heading, Stack, Text, VStack } from "@chakra-ui/react"
4-
import ButtonLink from "../../ButtonLink"
4+
import { ButtonLink } from "../../Buttons"
55
import Morpher from "../../Morpher"
66
import Translation from "../../Translation"
77
import GatsbyImage from "../../GatsbyImage"

0 commit comments

Comments
 (0)