@secretstache/wordpress-gutenberg 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secretstache/wordpress-gutenberg",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "",
5
5
  "author": "Secret Stache",
6
6
  "license": "GPL-2.0-or-later",
@@ -12,6 +12,7 @@ export const MediaTypeControl = (props) => {
12
12
  mediaFileName = '',
13
13
  mediaOnSelect,
14
14
  mediaOnRemove,
15
+ label = 'Media Type',
15
16
  } = props;
16
17
 
17
18
  const [selectedMediaType, setSelectedMediaType] = useState(mediaTypes?.[0]);
@@ -26,10 +27,9 @@ export const MediaTypeControl = (props) => {
26
27
  return (
27
28
  <>
28
29
  {
29
- // TODO: add custom label
30
30
  mediaTypes && (
31
31
  <SelectControl
32
- label="Media Type"
32
+ label={label}
33
33
  value={selectedMediaType}
34
34
  onChange={(mediaType) => setSelectedMediaType(mediaType)}
35
35
  options={mediaTypesOptions}