️ This Gitlab will be shut down at 2021-12-31 23:59:59.
Students and staff can migrate to gitlab.utwente.nl.
SNT members can migrate to gitlab.snt.utwente.nl.
Contact bestuur@snt.utwente.nl for more information.

Migrate your projects today!
Export your project using the webinterface or use a script.

Commit 599c4137 authored by TJHeeringa's avatar TJHeeringa

Revert fance PhonenumberField

parent c01a7b17
......@@ -179,19 +179,31 @@ const ProfileFormWithoutContainer = ({ update, profile, onSuccess, disabled, han
</Wrapper>
<Typography variant={"h5"}>Contact</Typography>
<Wrapper>
<PhoneNumberField
label={"Phone number"}
<TextField
name={"Phone number"}
value={profile.phone_number}
onChange={phone => handleProfileChange("phone_number", phone)}
onChange={(event) => handleProfileChange("phone_number", event.target.value)}
disabled={disabled}
helperText={
<>
Please enter your phone number with country code, i.e. +31 06 12345678 instead of 0612345678.<br/>
NB: Dutch mobile phone numbers start with +31 06, not +31 6.
Please enter your phone number with country code, i.e. +31 06 12345678 instead of 0612345678.
</>
}
required
/>
{/*<PhoneNumberField*/}
{/* label={"Phone number"}*/}
{/* value={profile.phone_number}*/}
{/* onChange={phone => handleProfileChange("phone_number", phone)}*/}
{/* disabled={disabled}*/}
{/* helperText={*/}
{/* <>*/}
{/* Please enter your phone number with country code, i.e. +31 06 12345678 instead of 0612345678.<br/>*/}
{/* NB: Dutch mobile phone numbers start with +31 06, not +31 6.*/}
{/* </>*/}
{/* }*/}
{/* required*/}
{/*/>*/}
</Wrapper>
<Wrapper>
<TextField
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment