Commit 3b470946 authored by Gijs Hendriksen's avatar Gijs Hendriksen Committed by Wietse Kuipers
Browse files

Open pizza.thalia.nu from welcome screen

parent 1c36bf20
import React from 'react';
import { View, Text, TouchableOpacity } from 'react-native';
import { View, Text, TouchableOpacity, Linking } from 'react-native';
import { connect } from 'react-redux';
import Moment from 'moment';
import 'moment/locale/nl';
import * as actions from '../actions/events';
import { pizzaUrl } from '../url';
import styles from './style/eventDetailCard';
......@@ -46,7 +47,7 @@ const EventDetailCard = props => (
</TouchableOpacity>
{props.event.pizza ? (
<TouchableOpacity
onPress={() => console.log('NOT YET IMPLEMENTED')}
onPress={() => Linking.openURL(pizzaUrl)}
style={styles.button}
>
<Text style={styles.orderPizza}>PIZZA</Text>
......
......@@ -5,3 +5,4 @@ if (__DEV__) { // eslint-disable-line no-undef
export const url = server;
export const apiUrl = `${server}/api/v1`;
export const pizzaUrl = 'https://pizza.thalia.nu';
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