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 BaseSidebar to TypeScript (#69089)
Fraser6c3a3b99ca3a
diff --git a/frontend/src/metabase/reference/guide/BaseSidebar.jsx b/frontend/src/metabase/reference/guide/BaseSidebar.tsxsimilarity index 80%rename from frontend/src/metabase/reference/guide/BaseSidebar.jsxrename to frontend/src/metabase/reference/guide/BaseSidebar.tsxindex 246b50d8d97..a1d07790156 100644--- a/frontend/src/metabase/reference/guide/BaseSidebar.jsx+++ b/frontend/src/metabase/reference/guide/BaseSidebar.tsx@@ -1,6 +1,4 @@-/* eslint "react/prop-types": "warn" */import cx from "classnames";-import PropTypes from "prop-types";import { memo } from "react";import { t } from "ttag";@@ -9,8 +7,8 @@ import S from "metabase/common/components/Sidebar.module.css";import { SidebarItem } from "metabase/common/components/SidebarItem";import CS from "metabase/css/core/index.css";-const BaseSidebar = ({ style, className }) => (- <div className={cx(S.sidebar, className)} style={style}>+const BaseSidebar = () => (+ <div className={S.sidebar}><div><BreadcrumbsclassName={cx(CS.py4, CS.ml3)}@@ -42,10 +40,5 @@ const BaseSidebar = ({ style, className }) => (</div>);-BaseSidebar.propTypes = {- className: PropTypes.string,- style: PropTypes.object,-};-// eslint-disable-next-line import/no-default-export -- deprecated usageexport default memo(BaseSidebar);