feat: update of partner

This commit is contained in:
eleanor.mao
2025-05-15 01:02:00 +08:00
parent 7aafc3a789
commit d2ac64f20c
52 changed files with 1435 additions and 265 deletions

View File

@ -0,0 +1,12 @@
import { useSelector } from 'react-redux';
import useUserInfo from '@/hooks/use-user-info';
import { selectPartnerInfo } from '@/store/selector/partner';
function useInviteCode() {
const data = useSelector(selectPartnerInfo);
const userInfo = useUserInfo();
return userInfo?.isPartner ? data?.inviteCode : undefined;
}
export default useInviteCode;