Skip to content

Commit

Permalink
chore: migrate calendar-icon to tsx (#11)
Browse files Browse the repository at this point in the history
* chore: migrate calendar-icon to tsx

* fix: updated extensions
  • Loading branch information
aizad-deriv committed Jan 5, 2023
1 parent a9a4d6f commit 26a5a7a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.

This file was deleted.

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;
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { daysFromTodayTo, epochToMoment, toMoment } from '@deriv/shared';
import { connect } from 'Stores/connect';
import CompositeCalendarMobile from './composite-calendar-mobile.jsx';
import SideList from './side-list.jsx';
import CalendarIcon from './calendar-icon.jsx';
import CalendarIcon from './calendar-icon';

const TwoMonthPicker = Loadable({
loader: () => import(/* webpackChunkName: "two-month-picker" */ './two-month-picker.jsx'),
Expand Down
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;

0 comments on commit 26a5a7a

Please sign in to comment.