Presentational "complete your profile" form.
Collects a full name and email and hands them to onSubmit; it performs no persistence itself. When defaultUsername is supplied it is rendered as a disabled field and used as the name fallback if the user leaves the name blank.
onSubmit
defaultUsername
Props: see ProfileCreateProps.
ProfileCreateProps
<ProfileCreate defaultUsername={user.username} defaultEmail={user.email} onSubmit={async ({ name, email }) => { await api.post("/profile", { name, email }); }} onBack={() => navigate(-1)}/> Copy
<ProfileCreate defaultUsername={user.username} defaultEmail={user.email} onSubmit={async ({ name, email }) => { await api.post("/profile", { name, email }); }} onBack={() => navigate(-1)}/>
Presentational "complete your profile" form.
Collects a full name and email and hands them to
onSubmit; it performs no persistence itself. WhendefaultUsernameis supplied it is rendered as a disabled field and used as the name fallback if the user leaves the name blank.Props: see
ProfileCreateProps.