Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/src/app/global-error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const ErrorWrapper: React.FC<{ children: React.ReactNode }> = ({ children
)
}

export default function GlobalError({ error }: { error: Error }) {
export default function GlobalError({ error }: Readonly<{ error: Error }>) {
Sentry.captureException(error)
const errorConfig = ERROR_CONFIGS['500']
return <ErrorDisplay {...errorConfig} />
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/app/members/[memberKey]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ export async function generateMetadata({
export default async function UserDetailsLayout({
children,
params,
}: {
}: Readonly<{
children: React.ReactNode
params: Promise<{ memberKey: string }>
}) {
}>) {
const { memberKey } = await params

const { data } = await apolloClient.query({
Expand Down
6 changes: 5 additions & 1 deletion frontend/src/app/projects/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import React from 'react'
import { getStaticMetadata } from 'utils/metaconfig'
export const metadata: Metadata = getStaticMetadata('projects', '/projects')

export default function ProjectsLayout({ children }: { children: React.ReactNode }) {
export default function ProjectsLayout({
children,
}: Readonly<{
children: React.ReactNode
}>) {
return <>{children}</>
}
2 changes: 1 addition & 1 deletion frontend/src/components/LogoCarousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface MovingLogosProps {
sponsors: Sponsor[]
}

export default function MovingLogos({ sponsors }: MovingLogosProps) {
export default function MovingLogos({ sponsors }: Readonly<MovingLogosProps>) {
const scrollerRef = useRef<HTMLDivElement>(null)

useEffect(() => {
Expand Down
8 changes: 7 additions & 1 deletion frontend/src/components/MarkdownWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ import DOMPurify from 'dompurify'
import markdownit from 'markdown-it'
import taskLists from 'markdown-it-task-lists'

export default function Markdown({ content, className }: { content: string; className?: string }) {
export default function Markdown({
content,
className,
}: Readonly<{
content: string
className?: string
}>) {
// prettier-ignore
const md = markdownit({ // NOSONAR - Safe to use markdown-it as we use DOMPurify to sanitize the content.
breaks: true,
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/components/NavDropDown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ interface NavDropDownProps {
pathname: string
link: LinkType
}

export default function NavDropdown({ link, pathname }: NavDropDownProps) {
export default function NavDropdown({ link, pathname }: Readonly<NavDropDownProps>) {
const [isOpen, setIsOpen] = useState(false)
const dropdownRef = useRef(null)
const dropdownId = useId()
Expand Down
6 changes: 5 additions & 1 deletion frontend/src/wrappers/provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ function AppInitializer() {
return null
}

export function Providers({ children }: { children: React.ReactNode }) {
export function Providers({
children,
}: Readonly<{
children: React.ReactNode
}>) {
return (
<Suspense>
<SessionProvider>
Expand Down
Loading