Commit 58193eb0 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Fix registration networking and styling on iOS

parent 892baf25
......@@ -25,13 +25,10 @@ function loadRegistrations(id, token) {
Authorization: `Token ${token}`,
},
};
return fetch(`${url}/api/events/${id}/registrations`, data)
return fetch(`${url}/api/events/${id}/registrations/`, data)
.then(
response => response.json(),
)
.then(
response => response,
)
.catch(
() => [],
);
......
......@@ -75,8 +75,8 @@ export function login(user, pass) {
'Content-Type': 'application/json',
},
body: JSON.stringify({
username: 'sebastiaan',
password: 'Cerberus1q2w3e!',
username: user,
password: pass,
}),
};
return fetch(`${url}/api/token-auth/`, data)
......
......@@ -18,7 +18,7 @@ const styles = create({
fontFamily: 'sans-serif-medium',
},
ios: {
fontFamily: 'San Fransisco',
fontFamily: 'System',
fontWeight: '500',
},
fontSize: 20,
......@@ -30,7 +30,7 @@ const styles = create({
fontFamily: 'sans-serif-medium',
},
ios: {
fontFamily: 'San Fransisco',
fontFamily: 'System',
fontWeight: '500',
},
fontSize: 14,
......@@ -58,7 +58,7 @@ const styles = create({
fontFamily: 'sans-serif-medium',
},
ios: {
fontFamily: 'San Fransisco',
fontFamily: 'System',
fontWeight: '500',
},
fontSize: 14,
......
......@@ -9,6 +9,7 @@ const styles = StyleSheet.create({
left: 6,
bottom: 4,
right: 6,
backgroundColor: colors.transparent,
},
image: {
flex: 1,
......
......@@ -10,6 +10,7 @@ export const colors = {
darkGrey: '#373737',
dividerGrey: 'rgba(0, 0, 0, 0.12)',
background: '#FAFAFA',
transparent: 'transparent',
};
export function create(styles) {
......
Supports Markdown
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