style: module form status

This commit is contained in:
anmolsinghbhatia 2023-05-02 15:45:55 +05:30
parent 22760eb80b
commit 2b7349c80a

View File

@ -43,7 +43,7 @@ export const ModuleStatusSelect: React.FC<Props> = ({ control, error }) => (
/>
)}
{MODULE_STATUS.find((s) => s.value === value)?.label ?? (
<span className="text-brand-secondary">Status</span>
<span className={`${error ? "text-red-500" : "text-brand-secondary"}`}>Status</span>
)}
</div>
}