Add unsend campaign feature (#45)
* Add unsend email editor Add email editor Add more email editor Add renderer partial Add more marketing email features * Add more campaign feature * Add variables * Getting there * campaign is there mfs * Add migration
This commit is contained in:
@@ -22,6 +22,7 @@ const FormSchema = z.object({
|
||||
region: z.string(),
|
||||
unsendUrl: z.string().url(),
|
||||
sendRate: z.number(),
|
||||
transactionalQuota: z.number().min(0).max(100),
|
||||
});
|
||||
|
||||
type SesSettingsProps = {
|
||||
@@ -56,6 +57,7 @@ export const AddSesSettingsForm: React.FC<SesSettingsProps> = ({
|
||||
region: "",
|
||||
unsendUrl: "",
|
||||
sendRate: 1,
|
||||
transactionalQuota: 50,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -167,6 +169,26 @@ export const AddSesSettingsForm: React.FC<SesSettingsProps> = ({
|
||||
</FormItem>
|
||||
)}
|
||||
/>
|
||||
<FormField
|
||||
control={form.control}
|
||||
name="transactionalQuota"
|
||||
render={({ field, formState }) => (
|
||||
<FormItem>
|
||||
<FormLabel>Transactional Quota</FormLabel>
|
||||
<FormControl>
|
||||
<Input placeholder="0" className="w-full" {...field} />
|
||||
</FormControl>
|
||||
{formState.errors.transactionalQuota ? (
|
||||
<FormMessage />
|
||||
) : (
|
||||
<FormDescription>
|
||||
The percentage of the quota to be used for transactional
|
||||
emails (0-100%).
|
||||
</FormDescription>
|
||||
)}
|
||||
</FormItem>
|
||||
)}
|
||||
/>
|
||||
<Button
|
||||
type="submit"
|
||||
disabled={addSesSettings.isPending}
|
||||
|
Reference in New Issue
Block a user