@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
@@ -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=
|
32
|
+
label={label}
|
33
33
|
value={selectedMediaType}
|
34
34
|
onChange={(mediaType) => setSelectedMediaType(mediaType)}
|
35
35
|
options={mediaTypesOptions}
|