The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
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.jsxdeleted file mode 100644index 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.tsxnew file mode 100644index 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);