Skip to content

Commit

Permalink
Convert test to TS
Browse files Browse the repository at this point in the history
  • Loading branch information
steviehailey-skyscanner committed Oct 28, 2024
1 parent 64885a7 commit c913e1d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

/* @flow strict */
import type { ReactElement } from 'react';

import { render } from '@testing-library/react';

Expand All @@ -25,7 +25,7 @@ import BpkDrawerContent from './BpkDrawerContent';
jest.mock(
'react-transition-group/Transition',
() =>
({ children }) =>
({ children }: { children: (state: string) => ReactElement }) =>
children('entered'),
);

Expand Down
12 changes: 6 additions & 6 deletions packages/bpk-component-drawer/src/BpkDrawerContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ type Props = {
contentClassName?: string,
closeLabel?: string,
closeText?: string,
isDrawerShown: boolean,
hideTitle: boolean,
closeOnScrimClick: boolean,
isIphone: boolean,
isIpad: boolean,
padded: boolean,
isDrawerShown?: boolean,
hideTitle?: boolean,
closeOnScrimClick?: boolean,
isIphone?: boolean,
isIpad?: boolean,
padded?: boolean,
};

const BpkDrawerContent = ({
Expand Down

0 comments on commit c913e1d

Please sign in to comment.