From 2154a42b1ad0e4389ebae44ed26a99ff613f15b9 Mon Sep 17 00:00:00 2001 From: Ronyell Henrique Date: Thu, 26 Apr 2018 20:22:51 -0300 Subject: [PATCH] #164 - Standardizing listing of meeting screen --- .../getCounselorFromGroupAuxiliary.js | 1 - src/screens/MeetingInvites.js | 91 ++++++++++--------- src/services/extractDataCounselor.js | 20 +++- src/services/extractDataMeeting.js | 15 +++ 4 files changed, 83 insertions(+), 44 deletions(-) create mode 100644 src/services/extractDataMeeting.js diff --git a/src/actions/auxiliary/getCounselorFromGroupAuxiliary.js b/src/actions/auxiliary/getCounselorFromGroupAuxiliary.js index e1891a5..6b02520 100644 --- a/src/actions/auxiliary/getCounselorFromGroupAuxiliary.js +++ b/src/actions/auxiliary/getCounselorFromGroupAuxiliary.js @@ -33,7 +33,6 @@ export const getCounselorFromGroup = async (codGroup) => { export const getCounselor = async (counselorLink, linkWithCodMembro) => { try { - console.log(counselorLink); const response = await axios.get(counselorLink); const auxCodMembro = linkWithCodMembro.substr(linkWithCodMembro.indexOf('membros/')); const codMembro = auxCodMembro.substr(8); diff --git a/src/screens/MeetingInvites.js b/src/screens/MeetingInvites.js index aaa0c6f..f0bfa90 100644 --- a/src/screens/MeetingInvites.js +++ b/src/screens/MeetingInvites.js @@ -3,7 +3,6 @@ import { StyleSheet, Text, View, - TouchableOpacity, ScrollView, ActivityIndicator, BackHandler, @@ -17,6 +16,10 @@ import Header from '../components/Header'; import LocalizationMapButton from '../components/LocalizationMapButton'; import { backHandlerPop } from '../NavigationFunctions'; import stylesList from '../Styles/ListStyles'; +import { getCounselorDataWithEmail } from '../services/extractDataCounselor'; +import ScheduleCard from '../components/ScheduleCard'; +import getMeetingData from '../services/extractDataMeeting'; +import Button from '../components/Button'; const styles = StyleSheet.create({ principal: { @@ -103,6 +106,25 @@ const styles = StyleSheet.create({ }); +const buttonBoxStyle = StyleSheet.create({ + design: { + borderColor: 'black', + borderWidth: 0.8, + borderRadius: 7, + backgroundColor: 'white', + padding: 8, + justifyContent: 'center', + marginRight: 15, + marginTop: 5, + marginBottom: 5, + }, + + text: { + fontSize: 12, + textAlign: 'center', + }, +}); + class MeetingInvites extends React.Component { constructor(props) { super(props); @@ -159,26 +181,19 @@ class MeetingInvites extends React.Component { } return ( this.props.listOfScheduleMeetingInAGroup.map(meetingSchedule => ( - - - - Data: - {meetingSchedule.content.date} - - - Horário: - {meetingSchedule.content.time} - - - - + +