Skip to content

Commit

Permalink
ty ESLint :) 2
Browse files Browse the repository at this point in the history
  • Loading branch information
tim0120 committed Nov 21, 2024
1 parent a87c571 commit e2c121a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/app/projects/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { getProjectData, getAllProjectSlugs } from '@/lib/projects'
// Dynamically import project components
const PROJECT_COMPONENTS = {
'emoji-search': dynamic(() => import('@/components/projects/EmojiSearch')),
// 'data-viz': dynamic(() => import('@/components/projects/DataVizProject')),
}

type Props = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/PageNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default function PageNav() {
<div className="mb-8">
<div className="flex justify-between">
<div className="flex items-center space-x-4">
<Image src="/favicon.png" alt="favicon" className="w-6 h-6" />
<Image src="/favicon.png" alt="favicon" width={24} height={24} />
<Link href="/" className="hover:underline">home</Link>
<Link href="/blog" className="hover:underline">blog</Link>
<Link href="/projects" className="hover:underline">projects</Link>
Expand Down
10 changes: 9 additions & 1 deletion src/components/projects/EmojiSearch/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,13 @@ function SearchStatusDisplay({

return (<div className="mt-5">{content}</div>);
}
export default function EmojiSearch() {
export default function EmojiSearch({
title,
description
}:{
title: string
description: string
}) {
const [query, setQuery] = useState('');
const [searchState, setSearchState] = useState<'init' | 'search' | 'success' | 'failure'>('init');
const [results, setResults] = useState<string[]>([]);
Expand Down Expand Up @@ -119,6 +125,8 @@ export default function EmojiSearch() {
return (
<div className="p-8 flex flex-col items-center">
<PageTitle />
<h1 className="sr-only">{title}</h1>
<p className="sr-only">{description}</p>
<SearchForm
query={query}
setQuery={setQuery}
Expand Down

0 comments on commit e2c121a

Please sign in to comment.