Skip to content

Commit

Permalink
refactor: undo imports order
Browse files Browse the repository at this point in the history
  • Loading branch information
ArekChr committed Jun 28, 2023
1 parent be2e0d0 commit 8abedfd
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 28 deletions.
8 changes: 4 additions & 4 deletions src/components/NewDatePicker/CalendarPicker/ArrowIcon.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import PropTypes from 'prop-types';
import React from 'react';
import {View} from 'react-native';
import CONST from '../../../CONST';
import * as StyleUtils from '../../../styles/StyleUtils';
import PropTypes from 'prop-types';
import styles from '../../../styles/styles';
import Icon from '../../Icon';
import * as Expensicons from '../../Icon/Expensicons';
import * as StyleUtils from '../../../styles/StyleUtils';
import Icon from '../../Icon';
import CONST from '../../../CONST';

const propTypes = {
/** Specifies if the arrow icon should be disabled or not. */
Expand Down
14 changes: 7 additions & 7 deletions src/components/NewDatePicker/CalendarPicker/YearPickerPage.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import React from 'react';
import _ from 'underscore';
import CONST from '../../../CONST';
import React from 'react';
import {withCurrentUserPersonalDetailsDefaultProps, withCurrentUserPersonalDetailsPropTypes} from '../../withCurrentUserPersonalDetails';
import ScreenWrapper from '../../ScreenWrapper';
import HeaderWithBackButton from '../../HeaderWithBackButton';
import withLocalize, {withLocalizePropTypes} from '../../withLocalize';
import styles from '../../../styles/styles';
import OptionsSelector from '../../OptionsSelector';
import themeColors from '../../../styles/themes/default';
import HeaderWithBackButton from '../../HeaderWithBackButton';
import * as Expensicons from '../../Icon/Expensicons';
import OptionsSelector from '../../OptionsSelector';
import ScreenWrapper from '../../ScreenWrapper';
import {withCurrentUserPersonalDetailsDefaultProps, withCurrentUserPersonalDetailsPropTypes} from '../../withCurrentUserPersonalDetails';
import withLocalize, {withLocalizePropTypes} from '../../withLocalize';
import CONST from '../../../CONST';

const greenCheckmark = {src: Expensicons.Checkmark, color: themeColors.success};

Expand Down
22 changes: 11 additions & 11 deletions src/components/NewDatePicker/CalendarPicker/index.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import Str from 'expensify-common/lib/str';
import moment from 'moment';
import _ from 'underscore';
import React from 'react';
import {View} from 'react-native';
import _ from 'underscore';
import CONST from '../../../CONST';
import getButtonState from '../../../libs/getButtonState';
import * as StyleUtils from '../../../styles/StyleUtils';
import styles from '../../../styles/styles';
import PressableWithFeedback from '../../Pressable/PressableWithFeedback';
import PressableWithoutFeedback from '../../Pressable/PressableWithoutFeedback';
import moment from 'moment';
import Str from 'expensify-common/lib/str';
import Text from '../../Text';
import withLocalize from '../../withLocalize';
import ArrowIcon from './ArrowIcon';
import ScreenSlideAnimation from './ScreenSlideAnimation';
import YearPickerPage from './YearPickerPage';
import ArrowIcon from './ArrowIcon';
import styles from '../../../styles/styles';
import {propTypes as calendarPickerPropType, defaultProps as defaultCalendarPickerPropType} from './calendarPickerPropTypes';
import generateMonthMatrix from './generateMonthMatrix';
import withLocalize from '../../withLocalize';
import CONST from '../../../CONST';
import getButtonState from '../../../libs/getButtonState';
import * as StyleUtils from '../../../styles/StyleUtils';
import PressableWithFeedback from '../../Pressable/PressableWithFeedback';
import PressableWithoutFeedback from '../../Pressable/PressableWithoutFeedback';

class CalendarPicker extends React.PureComponent {
constructor(props) {
Expand Down
6 changes: 3 additions & 3 deletions src/components/NewDatePicker/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import moment from 'moment';
import PropTypes from 'prop-types';
import React from 'react';
import {View} from 'react-native';
import moment from 'moment';
import PropTypes from 'prop-types';
import TextInput from '../TextInput';
import CONST from '../../CONST';
import styles from '../../styles/styles';
import * as Expensicons from '../Icon/Expensicons';
import TextInput from '../TextInput';
import {propTypes as baseTextInputPropTypes, defaultProps as defaultBaseTextInputPropTypes} from '../TextInput/baseTextInputPropTypes';
import withLocalize, {withLocalizePropTypes} from '../withLocalize';
import CalendarPicker from './CalendarPicker';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import {PortalHost} from '@gorhom/portal';
import {createStackNavigator} from '@react-navigation/stack';
import React from 'react';

import * as ModalStackNavigators from '../ModalStackNavigators';
import defaultModalScreenOptions from '../defaultModalScreenOptions';
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/CalendarPickerTest.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {fireEvent, render, within} from '@testing-library/react-native';
import {render, fireEvent, within} from '@testing-library/react-native';
import moment from 'moment';
import CONST from '../../src/CONST';
import CalendarPicker from '../../src/components/NewDatePicker/CalendarPicker';
import CONST from '../../src/CONST';

moment.locale(CONST.LOCALES.EN);
const monthNames = moment.localeData().months();
Expand Down

0 comments on commit 8abedfd

Please sign in to comment.