forked from openedx/frontend-app-authoring
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
92 additions
and
14 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
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 |
---|---|---|
|
@@ -33,6 +33,6 @@ | |
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
margin-top: 1.5rem; | ||
margin-bottom: 12px; | ||
} | ||
|
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { | ||
DataTable, | ||
TextFilter, | ||
} from '@edx/paragon'; | ||
import Proptypes from 'prop-types'; | ||
|
||
const tagsSample = [ | ||
{ name: 'Tag 1' }, | ||
{ name: 'Tag 2' }, | ||
{ name: 'Tag 3' }, | ||
{ name: 'Tag 4' }, | ||
{ name: 'Tag 5' }, | ||
{ name: 'Tag 6' }, | ||
{ name: 'Tag 7' }, | ||
]; | ||
|
||
const TagListTable = ({ tags }) => ( | ||
<DataTable | ||
isFilterable | ||
isSortable | ||
defaultColumnValues={{ Filter: TextFilter }} | ||
itemCount={tagsSample.length} | ||
data={tagsSample} | ||
columns={[ | ||
{ | ||
Header: 'Name', | ||
accessor: 'name', | ||
}, | ||
]} | ||
> | ||
<DataTable.TableControlBar /> | ||
<DataTable.Table /> | ||
<DataTable.EmptyTable content="No results found" /> | ||
<DataTable.TableFooter /> | ||
</DataTable> | ||
); | ||
|
||
TagListTable.propTypes = { | ||
tags: Proptypes.array.isRequired, | ||
}; | ||
|
||
export default TagListTable; |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { | ||
Card, | ||
} from '@edx/paragon'; | ||
import Proptypes from 'prop-types'; | ||
|
||
const TaxonomyDetailSideCard = ({ taxonomy }) => ( | ||
<Card> | ||
<Card.Header title="Taxonomy details" /> | ||
<Card.Section title="Title"> | ||
{taxonomy.name} | ||
</Card.Section> | ||
<Card.Divider className="ml-3 mr-3" /> | ||
<Card.Section title="Description"> | ||
{taxonomy.description} | ||
</Card.Section> | ||
<Card.Divider className="ml-3 mr-3" /> | ||
<Card.Section title="Copyright"> | ||
No copyright added | ||
</Card.Section> | ||
</Card> | ||
); | ||
|
||
TaxonomyDetailSideCard.propTypes = { | ||
taxonomy: Proptypes.object.isRequired, | ||
}; | ||
|
||
export default TaxonomyDetailSideCard; |