diff --git a/phone/src/Phone.tsx b/phone/src/Phone.tsx index da4fd9b..dc1f468 100644 --- a/phone/src/Phone.tsx +++ b/phone/src/Phone.tsx @@ -42,7 +42,6 @@ InjectDebugData([ ]); function Phone() { - const history = useHistory(); const quickAccess = useQuickAccess(); useNuiService(); usePhoneService(); @@ -109,7 +108,7 @@ function Phone() { icon: ( history.push(qa.path)} + to={qa.path} /> ), }))} diff --git a/phone/src/os/notifications/components/NotificationIcon.tsx b/phone/src/os/notifications/components/NotificationIcon.tsx index 6aed85d..831eb71 100644 --- a/phone/src/os/notifications/components/NotificationIcon.tsx +++ b/phone/src/os/notifications/components/NotificationIcon.tsx @@ -1,14 +1,15 @@ import React from 'react'; import { IconButton } from '@material-ui/core'; +import { NavLink } from 'react-router-dom'; interface INotificationIcon { icon: JSX.Element; - onClick(e: any): void; + to: string; } -export const NotificationIcon = ({ icon, onClick }: INotificationIcon) => { +export const NotificationIcon = ({ icon, to }: INotificationIcon) => { return ( - + {icon} );