📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
some improvments
kruzhambusea87b5f76203
diff --git a/src/ui/Alert.tsx b/src/ui/Alert.tsxindex a03e03fcb..2149ca73e 100644--- a/src/ui/Alert.tsx+++ b/src/ui/Alert.tsx@@ -8,7 +8,7 @@ import {// Define the prop types for the componentinterface IAlert {- // The message to be displayed in the alert.+ /* (string): The message to be displayed in the alert. */message: string,// (object): An object containing the options for the alert, including the type property, which can have the values 'info', 'success', or 'error'.options: {diff --git a/src/ui/Dropdown.tsx b/src/ui/Dropdown.tsxindex a21cbb9eb..477abedf1 100644--- a/src/ui/Dropdown.tsx+++ b/src/ui/Dropdown.tsx@@ -6,13 +6,18 @@ import _map from 'lodash/map'import _isEmpty from 'lodash/isEmpty'import PropTypes from 'prop-types'+// Define the prop types for the componentinterface IDropdown {title: string | number | React.ReactNode,desc?: string | number | React.ReactNode,className?: string,+ /* (array): An array of items to be displayed in the dropdown menu. */items: any[],+ /* (function): A function that returns the label for each item in the dropdown menu. */labelExtractor: (item: any) => string | number | React.ReactNode,+ /* (function): A function that returns the key for each item in the dropdown menu. */keyExtractor: (item: any) => string | number | React.ReactNode,+ /* (function): A function that is called when an item is selected. */onSelect: (item: any, e?: React.MouseEvent<HTMLElement>) => void | null,aside?: boolean,buttonClassName?: string,