Skip to content

Commit 968f870

Browse files
committed
fix(Dialog): fix prop type import
1 parent 1a64d8d commit 968f870

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

packages/orbit-components/src/Dialog/index.tsx

+7-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,13 @@ const Dialog = ({
126126
{illustration && <div className="mb-400 lm:text-start text-center">{illustration}</div>}
127127
<div className="mb-400 gap-200 lm:text-start lm:[&>.orbit-text]:text-start flex flex-col text-center [&>.orbit-text]:text-center">
128128
{title && (
129-
<Heading type="title3" align="center" largeMobile={{ align: "start" }} as={titleAs}>
129+
<Heading
130+
type="title3"
131+
align="center"
132+
largeMobile={{ align: "start" }}
133+
role={undefined}
134+
as={titleAs}
135+
>
130136
{title}
131137
</Heading>
132138
)}

packages/orbit-components/src/Dialog/types.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import type * as React from "react";
55

66
import type * as Common from "../common/types";
7-
import type { HeadingProps } from "../Heading/types";
7+
import type { Props as HeadingProps } from "../Heading/types";
88

99
export interface Props extends Common.Globals {
1010
readonly title: React.ReactNode;

0 commit comments

Comments
 (0)