visuddhinanda пре 1 година
родитељ
комит
bfda55bf5e
1 измењених фајлова са 8 додато и 2 уклоњено
  1. 8 2
      dashboard-v4/dashboard/src/components/studio/PublicitySelect.tsx

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

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