feat: get phone
This commit is contained in:
@ -18,6 +18,7 @@ import { isFullTimePriceRequired, isPartTimePriceRequired } from '@/utils/job';
|
||||
import { updateProfile, subscribeMaterialMessage } from '@/utils/material';
|
||||
import { navigateBack } from '@/utils/route';
|
||||
import Toast from '@/utils/toast';
|
||||
import useLocation from '@/hooks/use-location';
|
||||
|
||||
import './index.less';
|
||||
|
||||
@ -73,6 +74,7 @@ const isValidFormData = (type: ProfileGroupType, data: Partial<MaterialProfile>)
|
||||
};
|
||||
|
||||
export default function MaterialCreateProfile() {
|
||||
const location = useLocation();
|
||||
const [groupType, setGroupType] = useState<ProfileGroupType>(ProfileGroupType.Intention);
|
||||
const ref = useRef<{ getData: () => Partial<MaterialProfile> } | null>(null);
|
||||
const ProfileFragment =
|
||||
@ -121,7 +123,7 @@ export default function MaterialCreateProfile() {
|
||||
|
||||
return (
|
||||
<div className={PREFIX}>
|
||||
<ProfileFragment ref={ref} profile={{}} />
|
||||
<ProfileFragment ref={ref} profile={{cityCodes: location.cityCode || '' }} />
|
||||
<SafeBottomPadding />
|
||||
<div className={`${PREFIX}__footer`}>
|
||||
<Button className={`${PREFIX}__submit-btn`} onClick={handleSubmit}>
|
||||
|
||||
Reference in New Issue
Block a user