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.

feat: Add tooltip to charts toggle.

Cody Ogdenc6bb0a6c3c29
diff --git a/components/pages/WebsiteList.js b/components/pages/WebsiteList.js
index f4c299790..795f78c7e 100644
--- a/components/pages/WebsiteList.js
+++ b/components/pages/WebsiteList.js
@@ -40,7 +40,11 @@ export default function WebsiteList({ userId }) {
return (
<Page>
<div className={styles.menubar}>
- <Button icon={<Chart />} onClick={() => setHideCharts(!hideCharts)} />
+ <Button
+ tooltip={<FormattedMessage id="message.toggle-charts" defaultMessage="Toggle Charts" />}
+ icon={<Chart />}
+ onClick={() => setHideCharts(!hideCharts)}
+ />
</div>
{data.map(({ website_id, name, domain }) => (
<div key={website_id} className={styles.website}>