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!

Added a fancy console.log & fixed prop-type issue for UI Input component

Blue Mouse8fc01f786523
diff --git a/src/index.js b/src/index.js
index 5cfa60b5f..051d47d56 100644
--- a/src/index.js
+++ b/src/index.js
@@ -15,6 +15,8 @@ import App from './App'
import reportWebVitals from './reportWebVitals'
import './index.css'
+console.log('%cWelcome, hacker, glad you opened your console, you seem serious about your craft and will go a long way!\nP.S. All the bugs, feature requests can be sent to [email protected]', 'color: #818cf8;background: #1f2937;font-size: 20px;text-shadow: 2px 2px black')
+
Swetrix.init('STEzHcB1rALV', {
debug: true,
})
diff --git a/src/ui/Input.jsx b/src/ui/Input.jsx
index 26d4a9164..a8d4f8171 100644
--- a/src/ui/Input.jsx
+++ b/src/ui/Input.jsx
@@ -56,7 +56,9 @@ Input.propTypes = {
id: PropTypes.string,
type: PropTypes.string,
className: PropTypes.string,
- error: PropTypes.string,
+ error: PropTypes.oneOfType([
+ PropTypes.string, PropTypes.bool,
+ ]),
name: PropTypes.string,
disabled: PropTypes.bool,
}