update add notification
This commit is contained in:
@ -114,7 +114,7 @@ const AddDialog = () => {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
if (
|
if (
|
||||||
formField.type.trim() === '' ||
|
formField.all_customer.trim() === '' ||
|
||||||
formField.via.trim() === '' ||
|
formField.via.trim() === '' ||
|
||||||
formField.content.trim() === ''
|
formField.content.trim() === ''
|
||||||
) {
|
) {
|
||||||
@ -255,9 +255,7 @@ const AddDialog = () => {
|
|||||||
|
|
||||||
<div className="w-full">
|
<div className="w-full">
|
||||||
<div className="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div className="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
<label className="form-label flex items-center gap-1 max-w-56">
|
<label className="form-label flex items-center gap-1 max-w-56">Type</label>
|
||||||
Type<span className="text-red-500">*</span>
|
|
||||||
</label>
|
|
||||||
<div className="flex gap-6 items-center">
|
<div className="flex gap-6 items-center">
|
||||||
{['info', 'promo'].map((type) => (
|
{['info', 'promo'].map((type) => (
|
||||||
<label key={type} className="flex items-center space-x-2">
|
<label key={type} className="flex items-center space-x-2">
|
||||||
|
|||||||
Reference in New Issue
Block a user