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:
Zainab Amir
2021-02-18 15:36:05 +05:00
committed by GitHub
parent f210c030d8
commit dea1f7d335
16 changed files with 4385 additions and 872 deletions

View File

@@ -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' },