diff --git a/components/dashboard/package.json b/components/dashboard/package.json index d435735020e08a..654f61951752d2 100644 --- a/components/dashboard/package.json +++ b/components/dashboard/package.json @@ -10,6 +10,7 @@ "@stripe/react-stripe-js": "^1.7.2", "@stripe/stripe-js": "^1.29.0", "@types/react-datepicker": "^4.8.0", + "classnames": "^2.3.1", "configcat-js": "^6.0.0", "countries-list": "^2.6.1", "dayjs": "^1.11.5", @@ -43,7 +44,6 @@ "@typescript-eslint/eslint-plugin": "^4.21.0", "@typescript-eslint/parser": "^4.21.0", "autoprefixer": "^9.8.6", - "classnames": "^2.3.1", "cypress": "^9.2.1", "eslint": "^7.24.0", "eslint-config-react-app": "^6.0.0", diff --git a/components/dashboard/src/components/Modal.tsx b/components/dashboard/src/components/Modal.tsx index c65e7bcbd039fe..3ef0fc831c643e 100644 --- a/components/dashboard/src/components/Modal.tsx +++ b/components/dashboard/src/components/Modal.tsx @@ -4,7 +4,8 @@ * See License-AGPL.txt in the project root for license information. */ -import { useEffect } from "react"; +import { ReactNode, useEffect } from "react"; +import cn from "classnames"; import { getGitpodService } from "../service/service"; type CloseModalManner = "esc" | "enter" | "x"; @@ -14,8 +15,8 @@ export default function Modal(props: { specify?: string; title?: string; hideDivider?: boolean; - buttons?: React.ReactChild[] | React.ReactChild; - children: React.ReactChild[] | React.ReactChild; + buttons?: ReactNode; + children: ReactNode; visible: boolean; closeable?: boolean; className?: string; @@ -75,10 +76,10 @@ export default function Modal(props: {