Commit f31f3a0b authored by santhosh's avatar santhosh
Browse files

link copycalendar

parent 46ae68be
Showing with 22 additions and 19 deletions
+22 -19
......@@ -7,7 +7,7 @@ Devloper:Santosh,Mahesh Reddy
// import { Calendar } from 'react-native-big-calendar'
import EventCalendar from 'react-native-events-calendar';
import React, { Component } from 'react';
import { Alert, StyleSheet, TextInput, Text, Image, View, TouchableOpacity, Dimensions, Button } from 'react-native';
import { Alert, StyleSheet, TextInput, Text, Image, View, TouchableOpacity, Dimensions, Button,Linking } from 'react-native';
import NetInfo from '@react-native-community/netinfo';
// import { Agenda } from 'react-native-calendars';
import AsyncStorage from '@react-native-community/async-storage';
......@@ -287,7 +287,7 @@ export default class CalendarDashboard extends Component {
//alert(JSON.stringify(responseJson))
if (responseJson.status === 'True') {
// console.warn("Sprints from active sprint board" + JSON.stringify(responseJson))
// alert(JSON.stringify(responseJson))
//alert(JSON.stringify(responseJson))
// var sprintDetails = [];
// responseJson.data.map((sprints) => {
......@@ -926,6 +926,7 @@ export default class CalendarDashboard extends Component {
start: event.start,
end: event.end,
summary: event.summary,
location: event.location,
status: event.status,
eventdescription: event.eventdescription,
Id: event.Id,
......@@ -995,16 +996,18 @@ export default class CalendarDashboard extends Component {
const { modalVisible, selectedItems } = this.state;
// alert(JSON.stringify("data"+this.state.timesheet))
//alert("data"+JSON.stringify(this.state.dataSource1))
// alert("data"+JSON.stringify(this.state.dataSource1))
const timesheet = []
this.state.dataSource1.map((x) => {
return (
timesheet.push({
start: x.target_date || x.EndTime,
end: x.assigned_date || x.StartTime,
title: x.story_title || x.Subject,
start: x.StartTime || "2022-03-08 20:30:00+00",
end: x.EndTime || "2022-03-08 20:30:00+00",
title: x.Subject || x.Subject,
summary: x.assignedto || x.Members,
location: "https://meet.google.com/wja-iynx-cvf",
status: x.EventStatus,
eventdescription: x.Description,
Id: x.Id,
......@@ -1048,11 +1051,10 @@ export default class CalendarDashboard extends Component {
events={timesheet}
height={600}
onPressCell={() => { this.setState({ isVisible: true }) }}
// mode='3days'
mode='3days'
onPressEvent={this._eventTapped.bind(this)}
/>
{/* <EventCalendar
eventTapped={this._eventTapped.bind(this)}
events={timesheet}
......@@ -1072,9 +1074,10 @@ export default class CalendarDashboard extends Component {
</View>
<Text style={{ padding: 5 }}>{moment(this.state.start).format('MM.DD.YYYY hh:mm:ss')}</Text>
<Text style={{ paddingLeft: 5 }}>{this.state.summary}</Text>
<Text style={{ paddingLeft: 5,color:'#00A2C1' }} onPress={() => Linking.openURL(this.state.location)}>{this.state.location}</Text>
<Text style={{ paddingLeft: 5, paddingTop: 5 }}>{this.state.Location}</Text>
<View style={{ flexDirection: 'row', marginTop: 10, alignSelf: 'flex-end' }}>
<TouchableOpacity onPress={this.deleteEvent.bind(this)} disabled={this.state.itemPressedDisabled}>
<Image style={{ width: 27, height: 27, marginRight: 10 }} source={require('../Images/bin.png')} />
......
/*****MySql********/
//pre production environment (development)
// export const API = "https://api-single.agile24x7.com/release/";
// export const CHATAPI = "https://api-single.agile24x7.com/release";
// export const ReportsAPI = "https://testapiv2reporting.agile24x7.com/";
// export const Client_URL = "https://sdtest.agile24x7.com/#/";
export const API = "https://api-single.agile24x7.com/release/";
export const CHATAPI = "https://api-single.agile24x7.com/release";
export const ReportsAPI = "https://testapiv2reporting.agile24x7.com/";
export const Client_URL = "https://sdtest.agile24x7.com/#/";
//production environment
// export const API = "https://api-single.agile24x7.com/Migration/";
// export const CHATAPI = "https://api-single.agile24x7.com/Migration";
// export const ReportsAPI = "https://apiv2reporting.agile24x7.com/";
// export const Client_URL = "https://novisync.agile24x7.com/#/";
/*****Postgress********/
// //pre production environment (development)
export const API = "https://api-single.agile24x7.com/pg_migration/";
export const CHATAPI = "https://api-single.agile24x7.com/pg_migration";
export const ReportsAPI = "https://pgtestreporting.agile24x7.com/";
export const Client_URL = "https://pgtest.agile24x7.com/#/";
// export const API = "https://api-single.agile24x7.com/pg_migration/";
// export const CHATAPI = "https://api-single.agile24x7.com/pg_migration";
// export const ReportsAPI = "https://pgtestreporting.agile24x7.com/";
// export const Client_URL = "https://pgtest.agile24x7.com/#/";
//production environment
......
Markdown is supported
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