refactor(client/interface): default notify backwards compat

This commit is contained in:
Luke
2023-01-11 20:38:58 +01:00
parent e68d8d311c
commit 9a3cff864e
3 changed files with 11 additions and 11 deletions

View File

@@ -119,7 +119,7 @@ const exitAnimationBottom = keyframes({
const Notifications: React.FC = () => {
const { classes } = useStyles();
useNuiEvent<CustomNotificationProps>('customNotify', (data) => {
useNuiEvent<CustomNotificationProps>('notify', (data) => {
if (!data.title && !data.description) return;
// Backwards compat with old notifications
let position = data.position;