From 0079364606b3041b3e43916bfbf03601ad6b5892 Mon Sep 17 00:00:00 2001 From: Tanmay Bhatia Date: Thu, 4 Feb 2021 16:21:19 -0800 Subject: Changed snapchat and tiktok linking --- src/components/common/SocialLinkModal.tsx | 46 +++++++++++++++++++++---------- 1 file changed, 31 insertions(+), 15 deletions(-) (limited to 'src') diff --git a/src/components/common/SocialLinkModal.tsx b/src/components/common/SocialLinkModal.tsx index 41b044fe..85445155 100644 --- a/src/components/common/SocialLinkModal.tsx +++ b/src/components/common/SocialLinkModal.tsx @@ -1,18 +1,22 @@ import React from 'react'; -import {Modal, StyleSheet, Text, TouchableHighlight, View} from 'react-native'; +import {TouchableOpacity} from 'react-native'; +import {Modal, StyleSheet, Text, TouchableHighlight, View, ViewProps} from 'react-native'; import {TextInput} from 'react-native-gesture-handler'; import { TAGG_LIGHT_BLUE } from '../../constants'; import {SCREEN_WIDTH} from '../../utils'; +import CloseIcon from '../../assets/ionicons/close-outline.svg'; interface SocialLinkModalProps { modalVisible: boolean; setModalVisible: (_: boolean) => void; completionCallback: (username: string) => void; + close: () => void; } const SocialLinkModal: React.FC = ({ modalVisible, setModalVisible, + close, completionCallback, }) => { const [username, setUsername] = React.useState(''); @@ -26,11 +30,14 @@ const SocialLinkModal: React.FC = ({ onRequestClose={() => {}}> + + Insert your snapchat username to link your snapchat account to your profile! + = ({ setUsername(''); completionCallback(username); }}> - Link + Submit {/* cancel button */} - + + + {/* { setUsername(''); setModalVisible(!modalVisible); }} style={styles.cancelStyle}> Cancel - + */} @@ -96,17 +106,23 @@ const styles = StyleSheet.create({ fontWeight: 'bold', textAlign: 'center', }, - cancelStyle: { - position: 'relative', - height: 17, - top: 17, - fontStyle: 'normal', - fontWeight: '500', - fontSize: 14, - /* identical to box height */ - textAlign: 'center', - color: TAGG_LIGHT_BLUE, + closeButton: { + position: 'absolute', + height: '50%', + aspectRatio: 1, + left: '3%', }, + // cancelStyle: { + // position: 'absolute', + // height: 17, + // // fontStyle: 'normal', + // // fontWeight: '500', + // // fontSize: 14, + // /* identical to box height */ + // left: '3%', + // // textAlign: 'center', + // // color: TAGG_LIGHT_BLUE, + // }, textInput: { height: 20, width: '75%', -- cgit v1.2.3-70-g09d2