Skip to content

Commit

Permalink
Fix Course Actions block deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
renatho committed Aug 2, 2024
1 parent dd194af commit f38ab70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/blocks/course-actions-block/course-status-toolbar.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* WordPress dependencies
*/
import { Toolbar } from '@wordpress/components';
import { ToolbarGroup } from '@wordpress/components';
import { useContext } from '@wordpress/element';

/**
Expand Down Expand Up @@ -41,14 +41,14 @@ const CourseStatusToolbar = ( {
: setCourseStatus;

return (
<Toolbar>
<ToolbarGroup>
<ToolbarDropdown
options={ CourseStatusOptions }
optionsLabel="Course Status"
value={ courseStatusValue }
onChange={ setCourseStatusCallback }
/>
</Toolbar>
</ToolbarGroup>
);
};

Expand Down

0 comments on commit f38ab70

Please sign in to comment.