Skip to content

Commit d144471

Browse files
author
Huan Li
committed
Keep challenge util reference name consistent
1 parent 7388c5a commit d144471

File tree

8 files changed

+18
-18
lines changed

8 files changed

+18
-18
lines changed

src/shared/components/Dashboard/CurrentActivity/Challenges/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ import React from 'react';
66
import Sticky from 'react-stickynode';
77
import { config, Link } from 'topcoder-react-utils';
88

9-
import { challenge as challengeUtils } from 'topcoder-react-lib';
9+
import { challenge as challengeUtil } from 'topcoder-react-lib';
1010

1111
import ChallengeCard from './ChallengeCard';
1212
import ChallengeFilter from '../ChallengeFilter';
1313

1414
import style from './style.scss';
1515

16-
const Filter = challengeUtils.filter;
16+
const Filter = challengeUtil.filter;
1717

1818
export default function Challenges({
1919
challengeFilter,

src/shared/components/Dashboard/CurrentActivity/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import PT from 'prop-types';
55
import _ from 'lodash';
66
import { TABS } from 'actions/page/dashboard';
77

8-
import { challenge as challengeUtils } from 'topcoder-react-lib';
8+
import { challenge as challengeUtil } from 'topcoder-react-lib';
99

1010
import Challenges from './Challenges';
1111
import Communities from './Communities';
@@ -14,7 +14,7 @@ import Srms from './Srms';
1414

1515
import './styles.scss';
1616

17-
const Filter = challengeUtils.filter;
17+
const Filter = challengeUtil.filter;
1818

1919
/* eslint-disable react/no-unused-state */
2020

src/shared/components/challenge-listing/Filters/ChallengeFilters.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import _ from 'lodash';
66
import React from 'react';
77
import PT from 'prop-types';
88
import SwitchWithLabel from 'components/SwitchWithLabel';
9-
import { challenge as challengeUtils } from 'topcoder-react-lib';
9+
import { challenge as challengeUtil } from 'topcoder-react-lib';
1010
import { COMPETITION_TRACKS as TRACKS } from 'utils/tc';
1111

1212
import ChallengeSearchBar from './ChallengeSearchBar';
@@ -18,7 +18,7 @@ import FiltersCardsType from './FiltersCardsType';
1818

1919
import './ChallengeFilters.scss';
2020

21-
const Filter = challengeUtils.filter;
21+
const Filter = challengeUtil.filter;
2222

2323
export default function ChallengeFilters({
2424
communityFilters,

src/shared/components/challenge-listing/Filters/FiltersPanel/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
/* eslint-disable jsx-a11y/label-has-for */
2323

2424
import _ from 'lodash';
25-
import { challenge as challengeUtils } from 'topcoder-react-lib';
25+
import { challenge as challengeUtil } from 'topcoder-react-lib';
2626
import React from 'react';
2727
import PT from 'prop-types';
2828
import Select from 'components/Select';
@@ -37,7 +37,7 @@ import DateRangePicker from '../DateRangePicker';
3737
import style from './style.scss';
3838
import UiSimpleRemove from '../../Icons/ui-simple-remove.svg';
3939

40-
const Filter = challengeUtils.filter;
40+
const Filter = challengeUtil.filter;
4141

4242
export default function FiltersPanel({
4343
communityFilters,

src/shared/components/challenge-listing/Listing/ReviewOpportunityBucket/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ import PT from 'prop-types';
55
import React from 'react';
66
import SortingSelectBar from 'components/SortingSelectBar';
77
import Waypoint from 'react-waypoint';
8-
import { challenge as challengeUtils } from 'topcoder-react-lib';
8+
import { challenge as challengeUtil } from 'topcoder-react-lib';
99
import CardPlaceholder from '../../placeholders/ChallengeCard';
1010
import ReviewOpportunityCard from '../../ReviewOpportunityCard';
1111

1212
import './style.scss';
1313

14-
const { SORTS_DATA } = challengeUtils.sort;
14+
const { SORTS_DATA } = challengeUtil.sort;
1515

1616
const NO_RESULTS_MESSAGE = 'There are no review opportunities available';
1717

src/shared/components/challenge-listing/Sidebar/BucketSelector/Bucket/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
*/
44

55
import _ from 'lodash';
6-
import { challenge as challengeUtils } from 'topcoder-react-lib';
6+
import { challenge as challengeUtil } from 'topcoder-react-lib';
77
import PT from 'prop-types';
88
import { connect } from 'react-redux';
99
import React from 'react';
1010
import './style.scss';
1111

12-
const Filter = challengeUtils.filter;
12+
const Filter = challengeUtil.filter;
1313

1414
function Bucket({
1515
active,

src/shared/components/challenge-listing/Sidebar/BucketSelector/index.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66

77
import PT from 'prop-types';
88
import React from 'react';
9-
import { challenge as challengeUtils } from 'topcoder-react-lib';
9+
import { challenge as challengeUtil } from 'topcoder-react-lib';
1010

1111
import Bucket from './Bucket';
1212

1313
import './style.scss';
1414

15-
const Filter = challengeUtils.filter;
16-
const Buckets = challengeUtils.buckets;
15+
const Filter = challengeUtil.filter;
16+
const Buckets = challengeUtil.buckets;
1717

1818
const RSS_LINK = 'http://feeds.topcoder.com/challenges/feed?list=active&contestType=all';
1919

src/shared/containers/challenge-detail/index.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import challengeDetailsActions, { TABS as DETAIL_TABS }
2828
from 'actions/page/challenge-details';
2929
import { CHALLENGE_PHASE_TYPES, COMPETITION_TRACKS_V3, SUBTRACKS } from 'utils/tc';
3030
import { config, MetaTags } from 'topcoder-react-utils';
31-
import { actions, challenges } from 'topcoder-react-lib';
31+
import { actions, challenge as challengeUtil } from 'topcoder-react-lib';
3232

3333
import ogWireframe from
3434
'../../../assets/images/open-graph/challenges/01-wireframe.jpg';
@@ -56,7 +56,7 @@ import ogImage from '../../../assets/images/og_image.jpg';
5656

5757
import './styles.scss';
5858

59-
const Buckets = challenges.buckets;
59+
const { BUCKETS } = challengeUtil.buckets;
6060

6161
/* Holds various time ranges in milliseconds. */
6262
const MIN = 60 * 1000;
@@ -543,7 +543,7 @@ const mapDispatchToProps = (dispatch) => {
543543
const cls = challengeListingSidebarActions.challengeListing.sidebar;
544544
const cl = actions.challenge;
545545
dispatch(cl.setFilter(filter));
546-
dispatch(cls.selectBucket(Buckets.BUCKETS.ALL));
546+
dispatch(cls.selectBucket(BUCKETS.ALL));
547547
},
548548
setSpecsTabState: state => dispatch(pageActions.page.challengeDetails.setSpecsTabState(state)),
549549
unregisterFromChallenge: (auth, challengeId) => {

0 commit comments

Comments
 (0)