mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
Revert "Merge pull request #62 from project-error/feature/show-app-name-on-hover"
This reverts commit 5f7875182c.
This commit is contained in:
1 parent
5f7875182c
commit
d6a8c45d52
3 files changed
+23
-40
No files matched your search
@@ -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>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user