Skip to content

Commit 4660b90

Browse files
committed
fix: add explicit Props type to PostPage to resolve TypeScript error
1 parent 7ca46d9 commit 4660b90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/post.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const getStaticProps: GetStaticProps<Props> = async () => {
4545
};
4646
};
4747

48-
export default function PostPage({ postsByTag, tagCounts }) {
48+
export default function PostPage({ postsByTag, tagCounts }: Props) {
4949
const [selectedTag, setSelectedTag] = useState("latest");
5050
const [visibleCount, setVisibleCount] = useState(10);
5151
const [gradientStyle, setGradientStyle] = useState("");

0 commit comments

Comments
 (0)