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.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
feature(components): prop-type EmptyPlaceholder
Alexander Klein5b80b123fa40
diff --git a/components/common/EmptyPlaceholder.js b/components/common/EmptyPlaceholder.jsindex 26a9fcbf0..a223814da 100644--- a/components/common/EmptyPlaceholder.js+++ b/components/common/EmptyPlaceholder.js@@ -1,9 +1,10 @@import React from 'react';+import PropTypes from 'prop-types';import Icon from 'components/common/Icon';import Logo from 'assets/logo.svg';import styles from './EmptyPlaceholder.module.css';-export default function EmptyPlaceholder({ msg, children }) {+function EmptyPlaceholder({ msg, children }) {return (<div className={styles.placeholder}><Icon className={styles.icon} icon={<Logo />} size="xlarge" />@@ -12,3 +13,10 @@ export default function EmptyPlaceholder({ msg, children }) {</div>);}++EmptyPlaceholder.propTypes = {+ msg: PropTypes.node,+ children: PropTypes.node,+};++export default EmptyPlaceholder;