{children}
@@ -28,7 +27,7 @@ export const WeeklyCalendar = ({
totalDays,
daysBeforeToday = 0,
children,
-}: {
+}: React.PropsWithChildren<{
/**
* The total number of days to show in the calendar
*/
@@ -39,8 +38,7 @@ export const WeeklyCalendar = ({
* then the cal would be | today - 3 | today - 2 | today - 1 | today | today + 1 | ...
*/
daysBeforeToday?: number;
- children: React.ReactNode[] | React.ReactNode;
-}) => {
+}>) => {
const today = new Date();
const days = Array.from({ length: totalDays }, (_, i) => {
const date = addDays(today, i - daysBeforeToday);
diff --git a/apps/nextjs/src/app/_components/Dropdown.tsx b/apps/nextjs/src/app/_components/Dropdown.tsx
index a05ca7d0..69fdb899 100644
--- a/apps/nextjs/src/app/_components/Dropdown.tsx
+++ b/apps/nextjs/src/app/_components/Dropdown.tsx
@@ -1,6 +1,6 @@
import { Menu, Transition } from '@headlessui/react';
import classNames from 'classnames';
-import type { ReactElement, ReactNode } from 'react';
+import type { ReactElement } from 'react';
import React, { Fragment } from 'react';
const Dropdown = ({
@@ -10,14 +10,13 @@ const Dropdown = ({
position = 'left',
size = 'md',
noHighlight = false,
-}: {
- children: ReactElement | ReactNode[];
+}: React.PropsWithChildren<{
OpenButton: ReactElement;
openButtonClass?: string;
position?: 'left' | 'right';
size?: 'sm' | 'md' | 'lg';
noHighlight?: boolean;
-}) => {
+}>) => {
return (