Skip to content

Commit b0e870a

Browse files
committed
Remove “My Projects” checkbox
1 parent 0870553 commit b0e870a

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

src/components/ChallengesComponent/ChallengeList/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -657,9 +657,9 @@ class ChallengeList extends Component {
657657
</div>
658658
<div className={cn(styles.col4, styles.sortable)}>Forums</div>
659659
<div className={cn(styles.col3, styles.sortable)}>Status</div>
660-
<div className={styles.col6}></div>
661-
<div className={styles.col6}></div>
662-
<div className={styles.col6}></div>
660+
<div className={styles.col6} />
661+
<div className={styles.col6} />
662+
<div className={styles.col6} />
663663
</div>
664664
)}
665665
{challenges.length > 0 && (

src/components/ChallengesComponent/ChallengesComponent.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
.challenges {
44
width: 100%;
55
box-sizing: border-box;
6-
padding: 30px;
6+
padding: 20px 30px 30px 30px;
77
}
88

99
.title {

src/containers/Challenges/index.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ class Challenges extends Component {
150150
auth,
151151
metadata
152152
} = this.props
153-
const { searchProjectName, onlyMyProjects } = this.state
153+
const { searchProjectName } = this.state
154154
const { challengeTypes = [] } = metadata
155155
const projectInfo = _.find(projects, { id: activeProjectId }) || {}
156156
const projectComponents =
@@ -167,7 +167,7 @@ class Challenges extends Component {
167167
))
168168
return (
169169
<Fragment>
170-
<div className={styles.projectSearch}>
170+
<div className={!dashboard && styles.projectSearch}>
171171
{!selfService && (
172172
<div className={styles.projectSearchHeader}>
173173
{!dashboard && <label>Switch Project</label>}
@@ -180,13 +180,6 @@ class Challenges extends Component {
180180
value={searchProjectName}
181181
/>
182182
)}
183-
<input
184-
type='checkbox'
185-
label='My Projects'
186-
checked={onlyMyProjects}
187-
onChange={this.toggleMyProjects}
188-
/>
189-
<label>My Projects</label>
190183
</div>
191184
)}
192185
{!dashboard && activeProjectId === -1 && !selfService && (

0 commit comments

Comments
 (0)