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 20, 2022
1 parent b23caa5 commit 852d8e5
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

0 comments on commit 852d8e5

Please sign in to comment.