Skip to content

Commit

Permalink
update: added additional types
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutosh7i committed Apr 28, 2024
1 parent 503a3f5 commit 505b973
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/components/footer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Link from "next/link";
import { JSX, SVGProps } from "react";

export default function Component() {
return (
Expand Down Expand Up @@ -26,7 +27,7 @@ export default function Component() {
);
}

function GithubIcon(props) {
function GithubIcon(props: JSX.IntrinsicAttributes & SVGProps<SVGSVGElement>) {
return (
<svg
{...props}
Expand All @@ -46,7 +47,7 @@ function GithubIcon(props) {
);
}

function TwitterIcon(props) {
function TwitterIcon(props: JSX.IntrinsicAttributes & SVGProps<SVGSVGElement>) {
return (
<svg
{...props}
Expand All @@ -65,7 +66,7 @@ function TwitterIcon(props) {
);
}

function YoutubeIcon(props) {
function YoutubeIcon(props: JSX.IntrinsicAttributes & SVGProps<SVGSVGElement>) {
return (
<svg
{...props}
Expand Down
5 changes: 3 additions & 2 deletions src/components/navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Button } from "@/components/ui/button";
import { SheetTrigger, SheetContent, Sheet } from "@/components/ui/sheet";
import Link from "next/link";
import { JSX, SVGProps } from "react";

export default function Component() {
return (
Expand Down Expand Up @@ -83,7 +84,7 @@ export default function Component() {
);
}

function MenuIcon(props) {
function MenuIcon(props: JSX.IntrinsicAttributes & SVGProps<SVGSVGElement>) {
return (
<svg
{...props}
Expand All @@ -104,7 +105,7 @@ function MenuIcon(props) {
);
}

function MountainIcon(props) {
function MountainIcon(props: JSX.IntrinsicAttributes & SVGProps<SVGSVGElement>) {
return (
<svg
{...props}
Expand Down

0 comments on commit 505b973

Please sign in to comment.