mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 07:37:11 +01:00
Added user button and menu.
This commit is contained in:
parent
a5930f1772
commit
6e23a8a53b
21 changed files with 268 additions and 83 deletions
15
components/Account.js
Normal file
15
components/Account.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import React from 'react';
|
||||
import { useSelector } from 'react-redux';
|
||||
import Page from './Page';
|
||||
import styles from './Account.module.css';
|
||||
|
||||
export default function Account() {
|
||||
const user = useSelector(state => state.user);
|
||||
return (
|
||||
<Page>
|
||||
<h2>Account</h2>
|
||||
<div className={styles.label}>username</div>
|
||||
<div>{user.username}</div>
|
||||
</Page>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue