📈 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
selfhosted: jsx -> tsx
Blue Mouse429769428fac
diff --git a/src/hoc/Selfhosted.jsx b/src/hoc/Selfhosted.tsxsimilarity index 83%rename from src/hoc/Selfhosted.jsxrename to src/hoc/Selfhosted.tsxindex 1672a0fb6..2723729b0 100644--- a/src/hoc/Selfhosted.jsx+++ b/src/hoc/Selfhosted.tsx@@ -1,4 +1,4 @@-import { useEffect } from 'react'+import React, { useEffect } from 'react'import { useHistory } from 'react-router-dom'import _includes from 'lodash/includes'@@ -11,7 +11,11 @@ const selfHostedBlacklist = [const DEFAULT_PAGE = routes.signin-const Selfhosted = ({ children }) => {+interface ISelfhosted {+ children: JSX.Element+}++const Selfhosted: React.FC<ISelfhosted> = ({ children }): JSX.Element => {const history = useHistory()// eslint-disable-next-line consistent-return