Skip to content

Commit

Permalink
fix: props
Browse files Browse the repository at this point in the history
  • Loading branch information
bamdadfr committed Jun 25, 2024
1 parent c8a1e63 commit f9fbf67
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/pages/latest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ export default function LatestPage({latest}: LatestPageProps): ReactElement {
);
}

export async function getStaticProps(): Promise<
GetStaticPropsResult<LatestPageProps>
> {
type GetStaticProps = GetStaticPropsResult<LatestPageProps>;

export async function getStaticProps(): Promise<GetStaticProps> {
const latest = await apiQuery<LatestPageProps['latest']>('latest');

return {
Expand Down
6 changes: 3 additions & 3 deletions src/pages/top.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ export default function TopPage({top}: TopPageProps): ReactElement {
);
}

export async function getStaticProps(): Promise<
GetStaticPropsResult<TopPageProps>
> {
type GetStaticProps = GetStaticPropsResult<TopPageProps>;

export async function getStaticProps(): Promise<GetStaticProps> {
const top = await apiQuery<TopPageProps['top']>('top');

return {
Expand Down

0 comments on commit f9fbf67

Please sign in to comment.