Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
jerem1508 committed Feb 19, 2024
1 parent fa78b0b commit f0254ac
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion client/src/pages/home-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ import atlasImg from '../assets/atlas.png';

import './styles.scss';

type TDBDefinitionTypes = {
id: string,
label: string,
searchDescription: string,
tags: string[],
url: string,
}

export default function HomePage() {
const [searchText, setSearchText] = useState('');
const [searchResults, setSearchResults] = useState([]);
Expand Down Expand Up @@ -73,7 +81,7 @@ export default function HomePage() {
{
(searchResults?.length > 0) ? (
<ul className='search-results'>
{searchResults.map((result) => (
{searchResults.map((result: TDBDefinitionTypes) => (
<li
className='search-result'
key={result.id}
Expand Down

0 comments on commit f0254ac

Please sign in to comment.