show validation msg prperly at contact form

This commit is contained in:
Pramod Mahajan 2025-06-11 19:30:46 +05:30
parent 573d7828ae
commit e5b34eb1ba
2 changed files with 4 additions and 3 deletions

View File

@ -362,7 +362,7 @@ const ManageDirectory = ({ submitContact, onCLosed }) => {
{buckets?.map((item) => ( {buckets?.map((item) => (
<li <li
key={item.id} key={item.id}
className="list-inline-item flex-shrink-0 me-6 mb-2" className="list-inline-item flex-shrink-0 me-6 mb-1"
> >
<div className="form-check "> <div className="form-check ">
<input <input
@ -381,12 +381,13 @@ const ManageDirectory = ({ submitContact, onCLosed }) => {
</div> </div>
</li> </li>
))} ))}
</ul>
{errors.bucketIds && ( {errors.bucketIds && (
<small className="danger-text mt-0"> <small className="danger-text mt-0">
{errors.bucketIds.message} {errors.bucketIds.message}
</small> </small>
)} )}
</ul>
</div> </div>
</div> </div>

View File

@ -86,7 +86,7 @@ const Header = () => {
if (projects && selectedProject !== " ") { if (projects && selectedProject !== " ") {
dispatch(setProjectId(projects[0]?.id)); dispatch(setProjectId(projects[0]?.id));
} }
}, [projects, selectedProject]); }, [projects, ]);
const isProjectPath = /^\/projects\/[a-f0-9-]{36}$/.test(location.pathname); const isProjectPath = /^\/projects\/[a-f0-9-]{36}$/.test(location.pathname);
return ( return (
<nav <nav