Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 28 additions & 31 deletions src/components/ChallengeEditor/Resources/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,34 +352,33 @@ export default class Resources extends React.Component {
>
<thead className={styles.headTable} role='row'>
<tr>
{!isDesign && (
<th>
<button
<th>
<button
type='button'
onClick={() => {
this.onSortChange({
field: 'Role',
sort: field === 'Role' ? revertSort : 'desc'
})
}}
className={cn(styles['col-2Table'], styles['table-header'])}
>
<span role='columnheader'>Role</span>
<div
className={cn(styles['col-arrow'], {
[styles['col-arrow-sort-asc']]:
field === 'Role' && sort === 'asc',
[styles['col-arrow-is-sorting']]: field === 'Role'
})}
type='button'
Comment thread
himaniraghav3 marked this conversation as resolved.
onClick={() => {
this.onSortChange({
field: 'Role',
sort: field === 'Role' ? revertSort : 'desc'
})
}}
className={cn(styles['col-2Table'], styles['table-header'])}
>
<span role='columnheader'>Role</span>
<div
className={cn(styles['col-arrow'], {
[styles['col-arrow-sort-asc']]:
field === 'Role' && sort === 'asc',
[styles['col-arrow-is-sorting']]: field === 'Role'
})}
type='button'
>
<ReactSVG
path={assets(`${ArrowDown}`)}
/>
</div>
</button>
</th>
)}
<ReactSVG
path={assets(`${ArrowDown}`)}
/>
</div>
</button>
</th>

<th>
<button
onClick={() => {
Expand Down Expand Up @@ -461,11 +460,9 @@ export default class Resources extends React.Component {
{sortedResources.map(r => {
return (
<tr className={styles.rowTable} key={r.id} role='row'>
{!isDesign && (
<td className={styles['col-2Table']}>
<span role='cell'>{r.role}</span>
</td>
)}
<td className={styles['col-2Table']}>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ design]
The removal of the conditional rendering for the Role column means that this column will now always be displayed, regardless of whether the challenge is a design challenge or not. Ensure this change is intentional and aligns with the requirements.

<span role='cell'>{r.role}</span>
</td>
<td className={styles['col-3Table']}>
<span role='cell'>
<a
Expand Down
Loading