Revert "Merge pull request #62 from project-error/feature/show-app-name-on-hover"

This reverts commit 5f7875182c.
This commit is contained in:
RockySouthpaw authored and Taso committed 2021-02-03 22:41:45 -05:00
1 parent 5f7875182c
commit d6a8c45d52
3 files changed
+23 -40

No files matched your search

+2 -3
View File
@@ -4,7 +4,6 @@ import Avatar from '@material-ui/core/Avatar';
import { green } from '@material-ui/core/colors';
import { Button } from '@material-ui/core';
import Nui from '../../os/nui-events/utils/Nui';
import { AppConfiguration } from '../../os/apps/hooks/useApps';
interface IStyles {
root: any;
@@ -30,7 +29,7 @@ const useStyles = makeStyles(
})
);
export const AppIcon = ({ id, icon, backgroundColor, color }: AppConfiguration) => {
export const AppIcon = ({ id, name, icon, backgroundColor, color }) => {
const classes = useStyles({
backgroundColor: backgroundColor || green[50],
color: color || green[400],
@@ -43,7 +42,7 @@ export const AppIcon = ({ id, icon, backgroundColor, color }: AppConfiguration)
return (
<Button onClick={openAppCallback} className={classes.root}>
<Avatar className={classes.avatar}>
{icon}
{icon || name[0].toUpperCase()}
</Avatar>
</Button>
);