Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
fix(datetime): remove datetime mock (#42)
Browse files Browse the repository at this point in the history
resolves #18

Co-authored-by: anantoghosh <anantoghosh@users.noreply.github.com>

BREAKING CHANGE:

In Ionic v6, IonDatetime is no longer rendered as an overlay. As a result, the IonDatetime mock is no longer needed and has been removed. Developers can continue to use the real IonDatetime component imported from `@ionic/react`.
  • Loading branch information
liamdebeasi committed Oct 12, 2022
1 parent e0d76d0 commit 1922d87
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/mocks/mockIonicReact.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { IonInput } from '@ionic/react';
import { mockUseIonPicker } from './hooks/mockUseIonPicker';
import { mockController } from './mockController';
import { mockIonCheckbox } from './mockIonCheckbox';
Expand All @@ -11,7 +10,6 @@ export function mockIonicReact() {
IonActionSheet: mockController,
IonAlert: mockController,
IonCheckbox: mockIonCheckbox,
IonDatetime: IonInput,
IonLoading: mockController,
IonPicker: mockController,
IonPopover: mockController,
Expand Down

0 comments on commit 1922d87

Please sign in to comment.