Skip to content

Commit

Permalink
fix3
Browse files Browse the repository at this point in the history
  • Loading branch information
d-mittal-21 committed Aug 19, 2023
1 parent 45896bd commit c2184e6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions components/Contact/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ const Contact = () => {
alert("Form submitted successfully!");
if(form.current)
form.current.reset();

}, (error) => {
console.log(error.text);
alert("An error occured");

});
};

Expand Down
4 changes: 2 additions & 2 deletions components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ const Header = () => {
openIndex === index ? 'block' : 'hidden'
}`}
>
{menuItem.submenu.map((submenuItem) => (
{menuItem?.submenu?.map((submenuItem) => (
<Link
href={submenuItem.path}
href={submenuItem.path as string}
key={submenuItem.id}
className='block rounded py-2.5 text-sm text-dark hover:opacity-70 dark:text-white lg:px-3'
>
Expand Down
2 changes: 1 addition & 1 deletion components/Testimonials/SingleTestimonial.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const starIcon = (
const SingleTestimonial = ({ testimonial }: { testimonial: Testimonial }) => {
const { star, name, image, content, designation } = testimonial;

let ratingIcons = [];
let ratingIcons : JSX.Element[] = [];
for (let index = 0; index < star; index++) {
ratingIcons.push(
<span key={index} className="text-yellow">
Expand Down
1 change: 0 additions & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference types="next/navigation-types/compat/navigation" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.

0 comments on commit c2184e6

Please sign in to comment.