Skip to content

Commit

Permalink
add description field in media categories
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras committed Dec 19, 2022
1 parent 3ae0ece commit 7d8f4d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export function MediaCategoryPanel( { rootClientId, onInsert, category } ) {
category.label.toLocaleLowerCase()
) }
/>
{ category.description }
{ isLoading && (
<div className={ `${ baseCssClass }-spinner` }>
<Spinner />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ const inserterMediaCategories = [
label: 'Openverse',
name: 'openverse',
mediaType: 'image',
description: <p>{ __( 'Disclaimer message' ) }</p>,
async fetch( query = {} ) {
const defaultArgs = {
mature: false,
Expand Down
1 change: 1 addition & 0 deletions packages/editor/src/components/media-categories/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ const inserterMediaCategories = [
label: 'Openverse',
name: 'openverse',
mediaType: 'image',
description: <p>{ __( 'Disclaimer message' ) }</p>,
async fetch( query = {} ) {
const defaultArgs = {
mature: false,
Expand Down

1 comment on commit 7d8f4d1

@github-actions
Copy link

@github-actions github-actions bot commented on 7d8f4d1 Dec 19, 2022

Choose a reason for hiding this comment

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

Flaky tests detected.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/3729866389
📝 Reported issues:

Please sign in to comment.