Skip to content

Commit

Permalink
Added type definition for Banner
Browse files Browse the repository at this point in the history
  • Loading branch information
nithish1018 committed Nov 18, 2024
1 parent db6a231 commit 2b63e7f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions pages/index.js → pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* eslint-disable @next/next/no-img-element */

import { useState } from "react";

import {
ArrowPathIcon,
ChevronRightIcon,
Expand Down Expand Up @@ -144,9 +142,13 @@ const aiTools = [
"Ayushma AI is multilingual Medical Protocol Assistant for assisting nurses.",
},
];

type Banner = {
message: string;
href: string;
};
export default function Home() {
const [banner, setBanner] = useState(null);

const [banner, setBanner] = useState<Banner | null>(null);

return (
<div className="bg-white">
Expand Down Expand Up @@ -824,7 +826,7 @@ export default function Home() {
</div>
</div>
</section>
<CommitLayout />
<CommitLayout>{null}</CommitLayout>
<section
id="contact"
aria-label="Join Our Open Healthcare Network Slack Community"
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
".next/types/**/*.ts",
"**/*.ts",
"**/*.tsx"
],
, "pages/index.tsx" ],
"exclude": [
"node_modules"
]
Expand Down

0 comments on commit 2b63e7f

Please sign in to comment.