📈 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
migrated Title component to TypeScript
Blue Mouse21941f2ada49
diff --git a/src/components/Title.jsx b/src/components/Title.tsxsimilarity index 90%rename from src/components/Title.jsxrename to src/components/Title.tsxindex 443e41a27..d88b679d8 100644--- a/src/components/Title.jsx+++ b/src/components/Title.tsx@@ -7,7 +7,12 @@ import PropTypes from 'prop-types'import { TITLE_SUFFIX, whitelist } from 'redux/constants'-const Title = ({ title, children }) => {+interface ITitle {+ title?: string+ children: React.ReactNode+}++const Title: React.FC<ITitle> = ({ title, children }) => {const { i18n: { language } } = useTranslation('common')if (_isEmpty(title)) {