Skip to content

Commit

Permalink
fix: typescript Error for Head.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
shindigira committed Jul 27, 2023
1 parent 7f173e9 commit f26132e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Head.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import type { ReactElement } from 'react';
import { useEffect } from 'react';

interface Properties {
title: string;
}
export default function Head({ title }: Properties): null {
export default function Head({ title }: Properties): ReactElement | null {
useEffect(() => {
document.title = title;
}, [title]);
Expand Down

0 comments on commit f26132e

Please sign in to comment.