Skip to content
Snippets Groups Projects

Resolve "Create a dashboard"

Merged Björn Modée requested to merge 67-dashboard into dev
7 files
+ 223
10
Compare changes
  • Side-by-side
  • Inline
Files
7
import { Box } from '@material-ui/core'
import React from 'react'
import { useAppSelector } from '../../../../hooks'
// import * from '@material-ui/core'
const CurrentUser: React.FC = () => {
const currentUser = useAppSelector((state: { user: { userInfo: any } }) => state.user.userInfo)
return (
<div>
<Box color="text.primary" bgcolor="secondary.main" fontFamily="h3.fontFamily" width="100%" height="100%">
Current user info
</Box>
<div>Namn: {currentUser.name}</div>
<div>Email: {currentUser.email}</div>
<div>Region: {currentUser.city.name}</div>
<div>Roll: {currentUser.role.name}</div>
</div>
)
}
Loading