forked from binary-com/deriv-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: migrate calendar-icon to tsx (#11)
* chore: migrate calendar-icon to tsx * fix: updated extensions
- Loading branch information
1 parent
a9a4d6f
commit 26a5a7a
Showing
4 changed files
with
16 additions
and
13 deletions.
There are no files selected for viewing
11 changes: 0 additions & 11 deletions
11
packages/reports/src/Components/Form/CompositeCalendar/calendar-icon.jsx
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
packages/reports/src/Components/Form/CompositeCalendar/calendar-icon.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from 'react'; | ||
import { Icon } from '@deriv/components'; | ||
|
||
type TCalendarIcon = { | ||
onClick: () => void; | ||
}; | ||
|
||
const CalendarIcon = ({ onClick }: TCalendarIcon) => ( | ||
<Icon onClick={onClick} icon='IcCalendarDatefrom' className='inline-icon' /> | ||
); | ||
|
||
export default CalendarIcon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
packages/reports/src/Components/Form/CompositeCalendar/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
export default from './composite-calendar.jsx'; | ||
import CalendarIcon from './calendar-icon'; | ||
|
||
export default CalendarIcon; |