Skip to content

Commit

Permalink
Applied review
Browse files Browse the repository at this point in the history
  • Loading branch information
asvarcas committed Feb 15, 2021
1 parent b0d558b commit 19d85bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/Buttons.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ To override the style of all instances of `<SkipNavigationButton>` using the [ma

| Rule name | Description |
| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------- |
| `root` | Alternative to using `className`. Applied to the root element |
| `user` | Alternative to using `className`. Applied to the root element |
| `userButton` | Applied to the underlying `MuiButton` component when `useGetIdentity().loaded` is `true` and `useGetIdentity().identity.fullName` is set |
| `avatar` | Applied to the underlying `MuiAvatar` component when `useGetIdentity().avatar` is `true` |

Expand Down
4 changes: 2 additions & 2 deletions packages/ra-ui-materialui/src/layout/UserMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import AccountCircle from '@material-ui/icons/AccountCircle';

const useStyles = makeStyles(
theme => ({
root: {},
user: {},
userButton: {
textTransform: 'none',
},
Expand All @@ -34,7 +34,7 @@ const UserMenu = props => {
const handleClose = () => setAnchorEl(null);

return (
<div className={classes.root}>
<div className={classes.user}>
{loaded && identity?.fullName ? (
<Button
aria-label={label && translate(label, { _: label })}
Expand Down

0 comments on commit 19d85bc

Please sign in to comment.