Skip to content

Commit

Permalink
fix: use correct heading component for external inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvxd committed Oct 31, 2023
1 parent 5425aad commit 462266d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion packages/core/components/ExternalInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import getClassNameFactory from "../../lib/get-class-name-factory";
import { ExternalField } from "../../types/Config";
import { Link } from "react-feather";
import { Modal } from "../Modal";
import { Heading } from "../Heading";

const getClassName = getClassNameFactory("ExternalInput", styles);

Expand Down Expand Up @@ -90,7 +91,11 @@ export const ExternalInput = ({
)}
</div>
<Modal onClose={() => setOpen(false)} isOpen={isOpen}>
<h2 className={getClassName("modalHeading")}>Select content</h2>
<div className={getClassName("masthead")}>
<Heading rank={2} size="xxl">
Select content
</Heading>
</div>

{data.length ? (
<div className={getClassName("modalTableWrapper")}>
Expand Down
2 changes: 1 addition & 1 deletion packages/core/components/ExternalInput/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
margin-left: -1px;
}

.ExternalInput-modalHeading {
.ExternalInput-masthead {
background-color: white;
padding: 32px 24px;
}
Expand Down

0 comments on commit 462266d

Please sign in to comment.