Skip to content

Commit

Permalink
Merge pull request Expensify#35474 from JKobrynski/migrateReactFreeze…
Browse files Browse the repository at this point in the history
…MockToTypeScript

[No QA] [TS migration] Migrate 'react-freeze.js' mock to TypeScript
  • Loading branch information
nkuoch authored Feb 8, 2024
2 parents 304befd + 5143147 commit c9bd5bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 0 additions & 6 deletions __mocks__/react-freeze.js

This file was deleted.

8 changes: 8 additions & 0 deletions __mocks__/react-freeze.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import type {Freeze as FreezeComponent} from 'react-freeze';

const Freeze: typeof FreezeComponent = (props) => props.children as JSX.Element;

export {
// eslint-disable-next-line import/prefer-default-export
Freeze,
};

0 comments on commit c9bd5bf

Please sign in to comment.