Skip to content

Commit da9a624

Browse files
committed
Merge branch 'develop'
2 parents bd0de88 + 66be347 commit da9a624

File tree

26 files changed

+203
-25
lines changed

26 files changed

+203
-25
lines changed

__tests__/shared/components/SubmissionManagement/__snapshots__/SubmissionManagement.jsx.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ exports[`Matches shallow shapshot 1`] = `
6161
onShowDetails={[Function]}
6262
onlineReviewUrl=""
6363
showDetails={Set {}}
64+
status={undefined}
6465
submissionObjects={Array []}
6566
type="Challenge Track"
6667
/>

__tests__/shared/components/SubmissionManagement/__snapshots__/SubmissionsTable.jsx.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ exports[`Matches shallow shapshot 1`] = `
3737
onDownload={[Function]}
3838
onShowDetails={[Function]}
3939
showScreeningDetails={true}
40+
status={undefined}
4041
submissionObject={
4142
Object {
4243
"submissionId": 12345,

__tests__/shared/components/TopcoderHeader/__snapshots__/Auth.jsx.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ exports[`Snapshot match 1`] = `
66
>
77
<a
88
className="tc-btn-sm tc-btn-primary"
9-
href="http://accounts-test.topcoder-dev.com/member/registration"
9+
href="http://accounts.topcoder-dev.com/member/registration"
1010
>
1111
Join
1212
</a>
1313
<a
1414
className="tc-btn-sm tc-btn-default"
15-
href="http://accounts-test.topcoder-dev.com/member"
15+
href="http://accounts.topcoder-dev.com/member"
1616
>
1717
Log In
1818
</a>
@@ -25,13 +25,13 @@ exports[`Snapshot match 2`] = `
2525
>
2626
<a
2727
className="tc-btn-sm tc-btn-primary"
28-
href="http://accounts-test.topcoder-dev.com/member/registration"
28+
href="http://accounts.topcoder-dev.com/member/registration"
2929
>
3030
Join
3131
</a>
3232
<a
3333
className="tc-btn-sm tc-btn-default"
34-
href="http://accounts-test.topcoder-dev.com/member"
34+
href="http://accounts.topcoder-dev.com/member"
3535
>
3636
Log In
3737
</a>

__tests__/shared/components/TopcoderHeader/__snapshots__/index.jsx.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ exports[`Default render 1`] = `
4949
>
5050
<a
5151
className="tc-btn-sm tc-btn-primary"
52-
href="http://accounts-test.topcoder-dev.com/member/registration"
52+
href="http://accounts.topcoder-dev.com/member/registration"
5353
>
5454
Join
5555
</a>
5656
<a
5757
className="tc-btn-sm tc-btn-default"
58-
href="http://accounts-test.topcoder-dev.com/member"
58+
href="http://accounts.topcoder-dev.com/member"
5959
>
6060
Log In
6161
</a>
@@ -232,13 +232,13 @@ exports[`Render with open menu 1`] = `
232232
>
233233
<a
234234
className="tc-btn-sm tc-btn-primary"
235-
href="http://accounts-test.topcoder-dev.com/member/registration"
235+
href="http://accounts.topcoder-dev.com/member/registration"
236236
>
237237
Join
238238
</a>
239239
<a
240240
className="tc-btn-sm tc-btn-default"
241-
href="http://accounts-test.topcoder-dev.com/member"
241+
href="http://accounts.topcoder-dev.com/member"
242242
>
243243
Log In
244244
</a>

__tests__/shared/components/challenge-listing/ChallengeCard/__snapshots__/index.jsx.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ exports[`Matches shallow shapshot shapshot 1 1`] = `
4444
</span>
4545
<Tags
4646
onTechTagClicked={[Function]}
47+
platforms=""
4748
technologies="Data Science"
4849
/>
4950
</div>
@@ -155,6 +156,7 @@ exports[`Matches shallow shapshot shapshot 2 1`] = `
155156
</span>
156157
<Tags
157158
onTechTagClicked={[Function]}
159+
platforms=""
158160
technologies="Go"
159161
/>
160162
</div>
@@ -261,6 +263,7 @@ exports[`Matches shallow shapshot shapshot 3 1`] = `
261263
</span>
262264
<Tags
263265
onTechTagClicked={[Function]}
266+
platforms=""
264267
technologies=""
265268
/>
266269
</div>

__tests__/shared/components/tc-communities/__snapshots__/AccessDenied.jsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ exports[`Matches shallow shapshot 1`] = `
1515
>
1616
<a
1717
className="tc-btn-md tc-btn-primary"
18-
href="http://accounts-test.topcoder-dev.com/member?retUrl=null%2F"
18+
href="http://accounts.topcoder-dev.com/member?retUrl=null%2F"
1919
>
2020
Log In Here
2121
</a>

config/default.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"ACCOUNTS_APP_CONNECTOR": "https://accounts.topcoder-dev.com/connector.html",
5858

5959
"ARENA": "https://arena.topcoder-dev.com",
60-
"AUTH": "http://accounts-test.topcoder-dev.com",
60+
"AUTH": "http://accounts.topcoder-dev.com",
6161
"BASE": "https://www.topcoder-dev.com",
6262
"BLOG": "https://www.topcoder-dev.com/feed",
6363
"COGNITIVE": "https://cognitive.topcoder.com",

package-lock.json

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
"react-dom": "^15.6.1",
7979
"react-dropdown": "^1.2.1",
8080
"react-hot-loader": "^3.0.0-beta.6",
81+
"react-player": "^0.20.0",
8182
"react-redux": "^5.0.3",
8283
"react-router-dom": "^4.0.0",
8384
"react-select": "^1.0.0-rc.3",

src/shared/components/SubmissionManagement/Submission/index.jsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export default function Submission(props) {
3131
type,
3232
onDelete,
3333
onShowDetails,
34+
status,
3435
} = props;
3536
const formatDate = date => moment(+new Date(date)).format('MMM DD, YYYY hh:mm A');
3637

@@ -72,10 +73,12 @@ export default function Submission(props) {
7273
onClick={() => onDownload(submissionObject.submissionId)}
7374
><DownloadIcon /></button>
7475
*/ }
75-
<button
76-
styleName="delete-icon"
77-
onClick={() => onDelete(submissionObject.submissionId)}
78-
><DeleteIcon /></button>
76+
{status !== 'COMPLETED' &&
77+
<button
78+
styleName="delete-icon"
79+
onClick={() => onDelete(submissionObject.submissionId)}
80+
><DeleteIcon /></button>
81+
}
7982
<button
8083
styleName={`expand-icon ${(showScreeningDetails ? 'expanded' : '')}`}
8184
onClick={() => onShowDetails(submissionObject.submissionId)}
@@ -108,4 +111,5 @@ Submission.propTypes = {
108111
type: PT.string.isRequired,
109112
onDelete: PT.func.isRequired,
110113
onShowDetails: PT.func,
114+
status: PT.string.isRequired,
111115
};

0 commit comments

Comments
 (0)