Skip to content

Commit

Permalink
chore: change type to interface
Browse files Browse the repository at this point in the history
Following new lint rules
  • Loading branch information
DSil authored and mainframev committed Sep 19, 2023
1 parent 489bb29 commit c3f7adb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import * as React from "react";
import Slide from "../../../utils/Slide";
import useBoundingRect from "../../../hooks/useBoundingRect";

type Props = {
interface Props {
expanded?: boolean;
children?: React.ReactNode;
slideID: string;
labelID: string;
};
}

export default function Expandable({ expanded, children, slideID, labelID }: Props) {
const [{ height }, ref] = useBoundingRect<HTMLDivElement>({ height: expanded ? null : 0 });
Expand Down
4 changes: 2 additions & 2 deletions packages/orbit-components/src/Card/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Text from "../../Text";
import Close from "../../icons/Close";
import ButtonLink from "../../ButtonLink";

type Props = {
interface Props {
description?: React.ReactNode;
actions?: React.ReactNode;
onClose?: Common.Event<React.SyntheticEvent<HTMLButtonElement | HTMLAnchorElement>>;
Expand All @@ -22,7 +22,7 @@ type Props = {
expandable?: boolean;
expanded?: boolean;
header?: React.ReactNode;
};
}

const Header = ({
description,
Expand Down

0 comments on commit c3f7adb

Please sign in to comment.