feat(Marketplace): minor alerts

This commit is contained in:
Christopher committed 2021-02-19 18:26:53 +01:00
1 parent 283832f17e
commit 5244ff3a57
5 files changed
+33 -4

No files matched your search

@@ -2,9 +2,13 @@ import { useNuiEvent } from '../../../os/nui-events/hooks/useNuiEvent';
import { selloutState } from './state';
import { useListing } from './useListing';
import { useSetRecoilState } from 'recoil';
import { useSnackbar } from '../../../ui/hooks/useSnackbar';
export const useSelloutService = () => {
const setSellout = useSetRecoilState(selloutState.listing);
const { addAlert } = useSnackbar();
useNuiEvent('SELLOUT', 'setAlert', addAlert);
useNuiEvent('SELLOUT', 'setListings', setSellout);
return useListing();
};
};