make registration form static (#147)
- removed fetch registration call from register page - removed unused state variables - moved few hardcoded links to env variables VAN-369
This commit is contained in:
@@ -24,26 +24,6 @@ export async function registerRequest(registrationInformation) {
|
||||
};
|
||||
}
|
||||
|
||||
export async function getRegistrationForm() {
|
||||
const requestConfig = {
|
||||
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
||||
isPublic: true,
|
||||
};
|
||||
|
||||
const { data } = await getAuthenticatedHttpClient()
|
||||
.get(
|
||||
`${getConfig().LMS_BASE_URL}/user_api/v2/account/registration/`,
|
||||
requestConfig,
|
||||
)
|
||||
.catch((e) => {
|
||||
throw (e);
|
||||
});
|
||||
|
||||
return {
|
||||
registrationForm: data,
|
||||
};
|
||||
}
|
||||
|
||||
export async function getFieldsValidations(formPayload) {
|
||||
const requestConfig = {
|
||||
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
||||
|
||||
Reference in New Issue
Block a user