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