Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

feature(components): prop-type Dot component

Alexander Klein303fffbc4072
diff --git a/components/common/Dot.js b/components/common/Dot.js
index d5dcf9140..81454c487 100644
--- a/components/common/Dot.js
+++ b/components/common/Dot.js
@@ -1,8 +1,9 @@
import React from 'react';
+import PropTypes from 'prop-types';
import classNames from 'classnames';
import styles from './Dot.module.css';
-export default function Dot({ color, size, className }) {
+function Dot({ color, size, className }) {
return (
<div className={styles.wrapper}>
<div
@@ -15,3 +16,11 @@ export default function Dot({ color, size, className }) {
</div>
);
}
+
+Dot.propTypes = {
+ color: PropTypes.string,
+ size: PropTypes.oneOf(['small', 'large']),
+ className: PropTypes.string,
+};
+
+export default Dot;