Skip to content

Commit 6e6883c

Browse files
selfcontainedroboquat
authored andcommitted
updating classnames dep and using ReactNode type
1 parent 79a2fa7 commit 6e6883c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

components/dashboard/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"@stripe/react-stripe-js": "^1.7.2",
1111
"@stripe/stripe-js": "^1.29.0",
1212
"@types/react-datepicker": "^4.8.0",
13+
"classnames": "^2.3.1",
1314
"configcat-js": "^6.0.0",
1415
"countries-list": "^2.6.1",
1516
"dayjs": "^1.11.5",
@@ -43,7 +44,6 @@
4344
"@typescript-eslint/eslint-plugin": "^4.21.0",
4445
"@typescript-eslint/parser": "^4.21.0",
4546
"autoprefixer": "^9.8.6",
46-
"classnames": "^2.3.1",
4747
"cypress": "^9.2.1",
4848
"eslint": "^7.24.0",
4949
"eslint-config-react-app": "^6.0.0",

components/dashboard/src/components/Modal.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export default function Modal(props: {
1515
specify?: string;
1616
title?: string;
1717
hideDivider?: boolean;
18-
buttons?: React.ReactChild[] | React.ReactChild;
19-
children: React.ReactChild[] | React.ReactChild;
18+
buttons?: ReactNode;
19+
children: ReactNode;
2020
visible: boolean;
2121
closeable?: boolean;
2222
className?: string;
@@ -133,6 +133,7 @@ export const ModalBody = ({ children, hideDivider = false }: ModalBodyProps) =>
133133

134134
// EnvVar body classes
135135
// border-t border-b border-gray-200 dark:border-gray-800 -mx-6 px-6 py-4 flex flex-col
136+
// space-y-4 border-t border-b border-gray-200 dark:border-gray-800 mt-2 -mx-6 px-6 py-4
136137

137138
// Integrations body classes:
138139
// border-t border-b border-gray-200 dark:border-gray-800 mt-2 -mx-6 px-6 py-4

0 commit comments

Comments
 (0)