diff --git a/phone/src/ui/components/AppIcon.tsx b/phone/src/ui/components/AppIcon.tsx index 8b1e4be..2e3f20a 100644 --- a/phone/src/ui/components/AppIcon.tsx +++ b/phone/src/ui/components/AppIcon.tsx @@ -3,6 +3,7 @@ import { makeStyles } from "@material-ui/core/styles"; 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"; interface IStyles { root: any; @@ -28,13 +29,18 @@ const useStyles = makeStyles( }) ); -export const AppIcon = ({ name, icon, backgroundColor, color }) => { +export const AppIcon = ({ id, name, icon, backgroundColor, color }) => { const classes = useStyles({ backgroundColor: backgroundColor || green[50], color: color || green[400], }); + + const openAppCallback = () => { + Nui.send(`phone:app:${id}`) + } + return ( -