-
{messageEventTypesLabels[eventConfiguration.eventType]}
-
- {/* TODO: fix types in the MacawUI */}
- {/* @ts-ignore: MacawUI use wrong type for */}
-
- {[
- { label: "Active", value: true },
- { label: "Disabled", value: false },
- ].map((button) => (
- // @ts-ignore: MacawUI use wrong type for SwitchSelectorButton
- {
- updateEventConfiguration({
- configurationId,
- ...eventConfiguration,
- active: button.value,
- });
- }}
- activeTab={eventConfiguration.active.toString()}
- key={button.label}
- >
- {button.label}
-
- ))}
-
- {
- event.stopPropagation();
- event.preventDefault();
- router.push(
- mjmlUrls.eventConfiguration(configurationId, eventConfiguration.eventType)
- );
- }}
- >
-
-
-
-
-