Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Convert List to TypeScript (#69059)

Fraserad9d9d886b77
diff --git a/frontend/src/metabase/common/components/List/List.jsx b/frontend/src/metabase/common/components/List/List.jsx
deleted file mode 100644
index bf023f3d442..00000000000
--- a/frontend/src/metabase/common/components/List/List.jsx
+++ /dev/null
@@ -1,13 +0,0 @@
-/* eslint "react/prop-types": "warn" */
-import PropTypes from "prop-types";
-import { memo } from "react";
-
-import S from "./List.module.css";
-
-const ListInner = ({ children }) => <ul className={S.list}>{children}</ul>;
-
-ListInner.propTypes = {
- children: PropTypes.any.isRequired,
-};
-
-export const List = memo(ListInner);
diff --git a/frontend/src/metabase/common/components/List/List.tsx b/frontend/src/metabase/common/components/List/List.tsx
new file mode 100644
index 00000000000..dd2a591d33d
--- /dev/null
+++ b/frontend/src/metabase/common/components/List/List.tsx
@@ -0,0 +1,14 @@
+import type { ReactNode } from "react";
+import { memo } from "react";
+
+import S from "./List.module.css";
+
+interface ListProps {
+ children: ReactNode;
+}
+
+const ListInner = ({ children }: ListProps) => (
+ <ul className={S.list}>{children}</ul>
+);
+
+export const List = memo(ListInner);