Skip to content

📈 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!

migrated Title component to TypeScript

Blue Mouse21941f2ada49
diff --git a/src/components/Title.jsx b/src/components/Title.tsx
similarity index 90%
rename from src/components/Title.jsx
rename to src/components/Title.tsx
index 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)) {