Skip to content

Commit

Permalink
Change return type to ReactNode
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles-Pham committed Dec 13, 2024
1 parent f8c73fd commit 35e49c4
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions pages/profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
import { authOptions } from './api/auth/[...nextauth]'
import { getServerSession } from 'next-auth/next'
import ProfileTasks, { Task } from '../components/ProfileTasks'
import React from 'react'
import React, { ReactNode } from 'react'
import { acronym } from '../lib/acronym'
import ErrorPage from '../components/ErrorPage'
import { GetServerSidePropsContext } from 'next'
Expand All @@ -40,16 +40,7 @@ interface ProfilePageProps {
},
index: string,
) => React.JSX.Element,
) =>
| string
| number
| bigint
| boolean
| React.ReactElement
| Iterable<React.ReactNode>
| React.ReactPortal
| null
| undefined
) => ReactNode
}
lookingFor: {
title: string
Expand Down

0 comments on commit 35e49c4

Please sign in to comment.