Skip to content

Commit 39565d7

Browse files
committed
fix: lint
1 parent f59c514 commit 39565d7

File tree

3 files changed

+44
-33
lines changed

3 files changed

+44
-33
lines changed

src/shared/containers/Profile.jsx

+18-14
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ class ProfileContainer extends React.Component {
135135
const title = `${handleParam} | Community Profile | Topcoder`;
136136
const description = `Meet Topcoder member ${handleParam} and view their skills and development and design activity. You can also see wins and tenure with Topcoder.`;
137137

138+
const {copilot, externalAccounts, externalLinks, challenges, skills, stats, lookupData, badges, meta, tcAcademyCertifications, tcAcademyCourses} = this.props;
138139
return (
139140
<React.Fragment>
140141
<MetaTags
@@ -144,20 +145,19 @@ class ProfileContainer extends React.Component {
144145
{
145146
info ? (
146147
<ProfilePage
147-
copilot={this.props.copilot}
148-
externalAccounts={this.props.externalAccounts}
149-
challenges={this.props.challenges}
150-
externalLinks={this.props.externalAccounts}
151-
info={this.props.info}
152-
skills={this.props.skills}
153-
stats={this.props.stats}
154-
lookupData={this.props.lookupData}
155-
badges={this.props.badges}
156-
handleParam={this.props.handleParam}
157-
meta={this.props.meta}
158-
tcAcademyCertifications={this.props.tcAcademyCertifications}
159-
tcAcademyCourses={this.props.tcAcademyCourses}
160-
clearSubtrackChallenges={this.props.clearSubtrackChallenges}
148+
copilot={copilot}
149+
externalAccounts={externalAccounts}
150+
challenges={challenges}
151+
externalLinks={externalLinks}
152+
info={info}
153+
skills={skills}
154+
stats={stats}
155+
lookupData={lookupData}
156+
badges={badges}
157+
handleParam={handleParam}
158+
meta={meta}
159+
tcAcademyCertifications={tcAcademyCertifications}
160+
tcAcademyCourses={tcAcademyCourses}
161161
/>
162162
) : <LoadingIndicator />
163163
}
@@ -183,6 +183,8 @@ ProfileContainer.defaultProps = {
183183

184184
ProfileContainer.propTypes = {
185185
achievements: PT.arrayOf(PT.shape()),
186+
badges: PT.shape(),
187+
challenges: PT.arrayOf(PT.shape()),
186188
copilot: PT.bool,
187189
country: PT.string,
188190
externalAccounts: PT.shape(),
@@ -201,6 +203,8 @@ ProfileContainer.propTypes = {
201203
lookupData: PT.shape().isRequired,
202204
meta: PT.shape(),
203205
auth: PT.shape(),
206+
tcAcademyCertifications: PT.arrayOf(PT.shape()),
207+
tcAcademyCourses: PT.arrayOf(PT.shape()),
204208
};
205209

206210
const mapStateToProps = (state, ownProps) => ({

src/shared/containers/ProfileStats.jsx

+17-10
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@ class ProfileStatsContainer extends React.Component {
8181
handleParam,
8282
track,
8383
subTrack,
84+
stats,
85+
tab,
86+
setTab,
87+
info,
88+
statsDistribution,
89+
statsHistory,
90+
isAlreadyLoadChallenge,
8491
} = this.props;
8592

8693
if (loadingError || !isValidTrack(track, subTrack)) {
@@ -99,16 +106,16 @@ class ProfileStatsContainer extends React.Component {
99106
isLoading ? <LoadingIndicator />
100107
: (
101108
<ProfileStatsPage
102-
stats={this.props.stats}
103-
handleParam={this.props.handleParam}
104-
track={this.props.track}
105-
subTrack={this.props.subTrack}
106-
tab={this.props.tab}
107-
setTab={this.props.setTab}
108-
info={this.props.info}
109-
statsDistribution={this.props.statsDistribution}
110-
statsHistory={this.props.statsHistory}
111-
isAlreadyLoadChallenge={this.props.isAlreadyLoadChallenge}
109+
stats={stats}
110+
handleParam={handleParam}
111+
track={track}
112+
subTrack={subTrack}
113+
tab={tab}
114+
setTab={setTab}
115+
info={info}
116+
statsDistribution={statsDistribution}
117+
statsHistory={statsHistory}
118+
isAlreadyLoadChallenge={isAlreadyLoadChallenge}
112119
/>
113120
)
114121
}

src/shared/utils/markdown.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -80,27 +80,27 @@ const buttonThemes = {
8080

8181
const safeHtmlTags = [
8282
// Content Sectioning
83-
"address", "article", "aside", "footer", "header", "h1", "h2", "h3", "h4", "h5", "h6", "main", "nav", "section",
83+
'address', 'article', 'aside', 'footer', 'header', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'main', 'nav', 'section',
8484

8585
// Text Content
86-
"blockquote", "dd", "div", "dl", "dt", "figcaption", "figure", "hr", "li", "ol", "p", "pre", "ul",
86+
'blockquote', 'dd', 'div', 'dl', 'dt', 'figcaption', 'figure', 'hr', 'li', 'ol', 'p', 'pre', 'ul',
8787

8888
// Inline Text Semantics
89-
"a", "abbr", "b", "bdi", "bdo", "br", "cite", "code", "data", "dfn", "em", "i", "kbd", "mark", "q", "rp", "rt",
90-
"ruby", "s", "samp", "small", "span", "strong", "sub", "sup", "time", "u", "var", "wbr",
89+
'a', 'abbr', 'b', 'bdi', 'bdo', 'br', 'cite', 'code', 'data', 'dfn', 'em', 'i', 'kbd', 'mark', 'q', 'rp', 'rt',
90+
'ruby', 's', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'time', 'u', 'var', 'wbr',
9191

9292
// Image and Multimedia
93-
"img", "audio", "video", "source", "track", "picture",
93+
'img', 'audio', 'video', 'source', 'track', 'picture',
9494

9595
// Table Content
96-
"caption", "col", "colgroup", "table", "tbody", "td", "tfoot", "th", "thead", "tr",
96+
'caption', 'col', 'colgroup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr',
9797

9898
// Forms and Interactive Elements
99-
"button", "fieldset", "form", "input", "label", "legend", "meter", "optgroup", "option", "output", "progress",
100-
"select", "textarea",
99+
'button', 'fieldset', 'form', 'input', 'label', 'legend', 'meter', 'optgroup', 'option', 'output', 'progress',
100+
'select', 'textarea',
101101

102102
// Scripting and No-Scripting
103-
"noscript"
103+
'noscript'
104104
];
105105

106106
/**

0 commit comments

Comments
 (0)