diff --git a/src/components/editors/EditorAudioUploadButton/index.tsx b/src/components/editors/EditorAudioUploadButton/index.tsx index afc73141..9a201c9a 100644 --- a/src/components/editors/EditorAudioUploadButton/index.tsx +++ b/src/components/editors/EditorAudioUploadButton/index.tsx @@ -6,7 +6,12 @@ import { IEditorComponentProps } from '~/redux/node/types'; type IProps = IEditorComponentProps & {}; const EditorAudioUploadButton: FC = () => ( - + ); export { EditorAudioUploadButton }; diff --git a/src/components/editors/EditorImageUploadButton/index.tsx b/src/components/editors/EditorImageUploadButton/index.tsx index 859a3a75..702284b1 100644 --- a/src/components/editors/EditorImageUploadButton/index.tsx +++ b/src/components/editors/EditorImageUploadButton/index.tsx @@ -6,7 +6,12 @@ import { IEditorComponentProps } from '~/redux/node/types'; type IProps = IEditorComponentProps & {}; const EditorImageUploadButton: FC = () => ( - + ); export { EditorImageUploadButton }; diff --git a/src/components/editors/EditorUploadButton/index.tsx b/src/components/editors/EditorUploadButton/index.tsx index 19ca1b96..c2cb1dc3 100644 --- a/src/components/editors/EditorUploadButton/index.tsx +++ b/src/components/editors/EditorUploadButton/index.tsx @@ -12,12 +12,14 @@ type IProps = IEditorComponentProps & { accept?: string; icon?: string; type?: typeof UPLOAD_TYPES[keyof typeof UPLOAD_TYPES]; + label?: string; }; const EditorUploadButton: FC = ({ accept = 'image/*', icon = 'plus', type = UPLOAD_TYPES.IMAGE, + label, }) => { const { uploadFiles } = useFileUploaderContext()!; const { values } = useNodeFormContext(); @@ -35,8 +37,10 @@ const EditorUploadButton: FC = ({ [uploadFiles] ); + const color = values.is_promoted ? 'primary' : 'lab'; + return ( -