-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: upgraded frontend-build version to v12
- Loading branch information
1 parent
94805b6
commit 24ec752
Showing
51 changed files
with
8,735 additions
and
9,350 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// eslint-disable-next-line import/no-extraneous-dependencies | ||
const { createConfig } = require('@edx/frontend-build'); | ||
|
||
module.exports = createConfig('eslint'); |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,26 @@ | ||
import React from 'react'; | ||
import NewInstructorImage from '../../../assets/new-instructor-80.png'; | ||
|
||
export default (suggestion) => ( | ||
<div className="d-flex flex-row m-1 p-1"> | ||
<div className="m-1 p-1 w-25"> | ||
<img | ||
src={suggestion.image_url || NewInstructorImage} | ||
alt={`logo for ${suggestion.name}`} | ||
className="w-100" | ||
/> | ||
</div> | ||
<div className="m-1 p-1 w-75"> | ||
<div className="m-1 p-1">{suggestion.name}</div> | ||
<div className="m-1 p-1"> | ||
{suggestion.item_text && ( | ||
function renderSuggestion(suggestion) { | ||
return ( | ||
<div className="d-flex flex-row m-1 p-1"> | ||
<div className="m-1 p-1 w-25"> | ||
<img | ||
src={suggestion.image_url || NewInstructorImage} | ||
alt={`logo for ${suggestion.name}`} | ||
className="w-100" | ||
/> | ||
</div> | ||
<div className="m-1 p-1 w-75"> | ||
<div className="m-1 p-1">{suggestion.name}</div> | ||
<div className="m-1 p-1"> | ||
{suggestion.item_text && ( | ||
<span>{suggestion.item_text}</span> | ||
)} | ||
)} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
); | ||
} | ||
|
||
export default renderSuggestion; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.