umami/components/Account.js

16 lines
374 B
JavaScript
Raw Normal View History

2020-08-06 08:03:07 +02:00
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>
);
}