Skip to content

Commit

Permalink
ADM-909:[frontend]rename SortDateRange to SortingDateRange
Browse files Browse the repository at this point in the history
  • Loading branch information
pfpatrick committed Apr 16, 2024
1 parent 366855f commit 7851679
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SortType } from '@src/containers/ConfigStep/DateRangePicker/DateRangePickerGroup';

Check failure on line 1 in frontend/__tests__/containers/ConfigStep/SortingDateRange.test.tsx

View workflow job for this annotation

GitHub Actions / frontend-check

Replace `Type·}·from·'@src/containers/ConfigStep/DateRangePicker/DateRangePickerGroup` with `ingDateRange·}·from·'@src/containers/ConfigStep/DateRangePicker/SortingDateRange`

Check failure on line 1 in frontend/__tests__/containers/ConfigStep/SortingDateRange.test.tsx

View workflow job for this annotation

GitHub Actions / frontend-check

Replace `Type·}·from·'@src/containers/ConfigStep/DateRangePicker/DateRangePickerGroup` with `ingDateRange·}·from·'@src/containers/ConfigStep/DateRangePicker/SortingDateRange`
import { SortDateRange } from '@src/containers/ConfigStep/DateRangePicker/SortDateRange';
import { SortingDateRange } from '@src/containers/ConfigStep/DateRangePicker/SortingDateRange';

Check failure on line 2 in frontend/__tests__/containers/ConfigStep/SortingDateRange.test.tsx

View workflow job for this annotation

GitHub Actions / frontend-check

Replace `ingDateRange·}·from·'@src/containers/ConfigStep/DateRangePicker/SortingDateRange` with `Type·}·from·'@src/containers/ConfigStep/DateRangePicker/DateRangePickerGroup`

Check failure on line 2 in frontend/__tests__/containers/ConfigStep/SortingDateRange.test.tsx

View workflow job for this annotation

GitHub Actions / frontend-check

Replace `ingDateRange·}·from·'@src/containers/ConfigStep/DateRangePicker/SortingDateRange` with `Type·}·from·'@src/containers/ConfigStep/DateRangePicker/DateRangePickerGroup`
import { updateDateRangeSortType } from '@src/context/config/configSlice';
import { setupStore } from '@test/utils/setupStoreUtil';
import { render, screen } from '@testing-library/react';
Expand All @@ -12,7 +12,7 @@ const setup = () => {
store = setupStore();
return render(
<Provider store={store}>
<SortDateRange onChange={() => {}} sortType={SortType.DEFAULT} />
<SortingDateRange onChange={() => {}} sortType={SortType.DEFAULT} />
</Provider>,
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type Props = {
sortType: SortType;
};

export const SortDateRange = ({ onChange, sortType }: Props) => {
export const SortingDateRange = ({ onChange, sortType }: Props) => {
const dispatch = useAppDispatch();
const [dateRangeSortType, setDateRangeSortType] = useState(sortType);

Expand Down
4 changes: 2 additions & 2 deletions frontend/src/containers/ConfigStep/DateRangePicker/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DateRangePickerGroup, SortType } from '@src/containers/ConfigStep/DateRangePicker/DateRangePickerGroup';
import { ISortedDateRangeType } from '@src/containers/ConfigStep/DateRangePicker/DateRangePickerGroup';
import { selectDateRange, selectDateRangeSortType } from '@src/context/config/configSlice';

Check failure on line 3 in frontend/src/containers/ConfigStep/DateRangePicker/index.tsx

View workflow job for this annotation

GitHub Actions / frontend-check

Replace `selectDateRange,·selectDateRangeSortType·}·from·'@src/context/config/configSlic` with `SortingDateRange·}·from·'@src/containers/ConfigStep/DateRangePicker/SortingDateRang`

Check failure on line 3 in frontend/src/containers/ConfigStep/DateRangePicker/index.tsx

View workflow job for this annotation

GitHub Actions / frontend-check

Replace `selectDateRange,·selectDateRangeSortType·}·from·'@src/context/config/configSlic` with `SortingDateRange·}·from·'@src/containers/ConfigStep/DateRangePicker/SortingDateRang`
import { SortDateRange } from '@src/containers/ConfigStep/DateRangePicker/SortDateRange';
import { SortingDateRange } from '@src/containers/ConfigStep/DateRangePicker/SortingDateRange';

Check failure on line 4 in frontend/src/containers/ConfigStep/DateRangePicker/index.tsx

View workflow job for this annotation

GitHub Actions / frontend-check

Replace `SortingDateRange·}·from·'@src/containers/ConfigStep/DateRangePicker/SortingDateRang` with `selectDateRange,·selectDateRangeSortType·}·from·'@src/context/config/configSlic`

Check failure on line 4 in frontend/src/containers/ConfigStep/DateRangePicker/index.tsx

View workflow job for this annotation

GitHub Actions / frontend-check

Replace `SortingDateRange·}·from·'@src/containers/ConfigStep/DateRangePicker/SortingDateRang` with `selectDateRange,·selectDateRangeSortType·}·from·'@src/context/config/configSlic`
import SectionTitleWithTooltip from '@src/components/Common/SectionTitleWithTooltip';
import { TitleContainer } from '@src/containers/ConfigStep/DateRangePicker/style';
import { TIME_RANGE_TITLE, TIPS } from '@src/constants/resources';
Expand Down Expand Up @@ -41,7 +41,7 @@ export const DateRangePickerSection = () => {
}}
/>
{dateRangeGroup.length > 1 && isDateRangeValid && !hasError && (
<SortDateRange onChange={handleSortTypeChange} sortType={sortType} />
<SortingDateRange onChange={handleSortTypeChange} sortType={sortType} />
)}
</TitleContainer>
<DateRangePickerGroup sortType={sortType} onError={handleError} />
Expand Down

0 comments on commit 7851679

Please sign in to comment.