diff --git a/package.json b/package.json index cadce1c..f78fbb3 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "dependencies": { "@headlessui/react": "^1.7.11", "@heroicons/react": "^2.0.16", + "clsx": "^2.1.1", "date-fns": "^2.29.3", "immutability-helper": "^3.1.1", "ipaddr.js": "^2.0.1", diff --git a/src/components/common/ErrorCard.tsx b/src/components/common/ErrorCard.tsx index 2d8d7ba..93322df 100644 --- a/src/components/common/ErrorCard.tsx +++ b/src/components/common/ErrorCard.tsx @@ -1,19 +1,22 @@ -import { FunctionComponent, ReactNode } from "react"; +import type { FunctionComponent, ReactNode } from "react"; import { XCircleIcon } from "@heroicons/react/20/solid"; +import clsx from "clsx"; export type ErrorCardProps = { title: ReactNode; description?: ReactNode; issues?: ReactNode[]; + className?: string; }; const ErrorCard: FunctionComponent = ({ title, description, issues, + className, }) => { return ( -
+