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.

Added version to menu.

Mike Caocec186e4c177
diff --git a/src/components/input/ProfileButton.js b/src/components/input/ProfileButton.js
index 015c0ad8d..35b0eb454 100644
--- a/src/components/input/ProfileButton.js
+++ b/src/components/input/ProfileButton.js
@@ -3,8 +3,9 @@ import { useRouter } from 'next/router';
import Icons from 'components/icons';
import useMessages from 'components/hooks/useMessages';
import useUser from 'components/hooks/useUser';
-import styles from './ProfileButton.module.css';
import useLocale from 'components/hooks/useLocale';
+import { CURRENT_VERSION } from 'lib/constants';
+import styles from './ProfileButton.module.css';
export function ProfileButton() {
const { formatMessage, labels } = useMessages();
@@ -51,6 +52,7 @@ export function ProfileButton() {
<Text>{formatMessage(labels.logout)}</Text>
</Item>
)}
+ <div className={styles.version}>{`v${CURRENT_VERSION}`}</div>
</Menu>
</Popup>
</PopupTrigger>
diff --git a/src/components/input/ProfileButton.module.css b/src/components/input/ProfileButton.module.css
index 8b1897bd5..e78433448 100644
--- a/src/components/input/ProfileButton.module.css
+++ b/src/components/input/ProfileButton.module.css
@@ -8,3 +8,11 @@
gap: 12px;
background: var(--base50);
}
+
+.version {
+ font-family: monospace;
+ font-size: 11px;
+ color: var(--base600);
+ text-align: right;
+ margin-right: 10px;
+}