Skip to content

Commit

Permalink
updating contact form making all fields mandatory for sending a message
Browse files Browse the repository at this point in the history
  • Loading branch information
BigSamu committed Oct 31, 2023
1 parent dfd08f7 commit 1a4fbf1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/components/ContactForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const ContactForm = () => {
name="name"
type="text"
placeholder="Name"
required
/>
</div>
</div>
Expand All @@ -70,6 +71,7 @@ const ContactForm = () => {
name="email"
type="email"
placeholder="Email"
required
/>
</div>
</div>
Expand All @@ -86,6 +88,7 @@ const ContactForm = () => {
id="message"
name="message"
placeholder="Message"
required
></textarea>
</div>
</div>
Expand Down
4 changes: 0 additions & 4 deletions src/components/ContactToast.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import ToastContext from '../contexts/ToastContext';

const ContactToast = () => {
const { toastInfo, setToastInfo } = useContext(ToastContext);
console.log(toastInfo)

const backgroundColor = toastInfo.type === 'success' ? '!bg-green-200 dark:!bg-green-700' : '!bg-red-200 dark:!bg-red-700';
const textColor = toastInfo.type === 'success' ? 'text-green-500 dark:text-green-200' : 'text-red-500 dark:text-red-200';
Expand All @@ -28,6 +27,3 @@ const ContactToast = () => {
};

export default ContactToast;



0 comments on commit 1a4fbf1

Please sign in to comment.