reactored code to use formfields and formselects

This commit is contained in:
2024-12-24 19:10:20 +05:30
parent 962102d44c
commit 9f4059e2c6
8 changed files with 175 additions and 204 deletions

View File

@@ -0,0 +1,21 @@
import PropTypes from "prop-types";
import { motion } from "motion/react";
function FieldError({ text }) {
return (
<motion.div
className="text-sm text-error ml-3 pt-1"
initial={{ y: 15, opacity: 0 }}
animate={{ y: 0, opacity: 1 }}
exit={{ y: 15, opacity: 0 }}
>
{text}
</motion.div>
);
}
FieldError.propTypes = {
text: PropTypes.string.isRequired,
};
export default FieldError;