Skip to content

Commit f919d23

Browse files
committed
chore: clean up prop type
1 parent 8f183a9 commit f919d23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/FileContributors.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
VStack,
1313
} from "@chakra-ui/react"
1414

15-
import type { FileContributor, Lang } from "@/lib/types"
15+
import type { ChildOnlyProp, FileContributor, Lang } from "@/lib/types"
1616

1717
import { Button } from "@/components/Buttons"
1818
import InlineLink from "@/components/Link"
@@ -23,7 +23,7 @@ import Translation from "@/components/Translation"
2323
import { trackCustomEvent } from "@/lib/utils/matomo"
2424
import { getLocaleTimestamp } from "@/lib/utils/time"
2525

26-
const ContributorList = ({ children }: { children: React.ReactNode }) => (
26+
const ContributorList = ({ children }: Required<ChildOnlyProp>) => (
2727
<UnorderedList maxH="2xs" m={0} mt={6} overflowY="scroll">
2828
{children}
2929
</UnorderedList>

0 commit comments

Comments
 (0)