1
0
mirror of https://github.com/kremalicious/umami.git synced 2024-12-21 00:33:39 +01:00

Merge pull request from codyogden/issue-705

Add tooltip to charts toggle.
This commit is contained in:
Mike Cao 2021-11-20 15:25:15 -08:00 committed by GitHub
commit 0f752de047
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}>