visuddhinanda hai 1 ano
pai
achega
bfda55bf5e

+ 8 - 2
dashboard-v4/dashboard/src/components/studio/PublicitySelect.tsx

@@ -11,9 +11,15 @@ export type TPublicity =
 interface IWidget {
 interface IWidget {
   width?: number | "md" | "sm" | "xl" | "xs" | "lg";
   width?: number | "md" | "sm" | "xl" | "xs" | "lg";
   disable?: TPublicity[];
   disable?: TPublicity[];
+  name?: string;
   readonly?: boolean;
   readonly?: boolean;
 }
 }
-const PublicitySelectWidget = ({ width, disable = [], readonly }: IWidget) => {
+const PublicitySelectWidget = ({
+  width,
+  disable = [],
+  name = "status",
+  readonly,
+}: IWidget) => {
   const intl = useIntl();
   const intl = useIntl();
 
 
   const options = [
   const options = [
@@ -60,7 +66,7 @@ const PublicitySelectWidget = ({ width, disable = [], readonly }: IWidget) => {
       options={options.filter((value) => value.disable === false)}
       options={options.filter((value) => value.disable === false)}
       readonly={readonly}
       readonly={readonly}
       width={width}
       width={width}
-      name="status"
+      name={name}
       allowClear={false}
       allowClear={false}
       label={intl.formatMessage({ id: "forms.fields.publicity.label" })}
       label={intl.formatMessage({ id: "forms.fields.publicity.label" })}
     />
     />