Commit ef29b05c620ff370d16c6a5819900f80854b435b

Authored by Galileo Sanchez
1 parent 16815a38

estadisticas

... ... @@ -13,7 +13,6 @@ import store from './redux/store'
13 13 import MainScreen from './screens/MisSolicitudes'
14 14 import NuevaSolicitud from './screens/NuevaSolicitud'
15 15 import DetalleSolicitud from './screens/DetalleSolicitud'
16   -import Estadisticas from './screens/Estadisticas'
17 16 import Ayuda from './screens/Ayuda'
18 17 import BuscarSolicitudes from './screens/BuscarSolicitudes'
19 18 import ListaInstituciones from './screens/ListaInstituciones'
... ... @@ -83,11 +82,10 @@ export default class App extends Component {
83 82 headerTitleStyle: css.headerTitleStyle
84 83 }),
85 84 },
86   - Estadisticas: { screen: Estadisticas },
87 85 AyudaNavigator: {
88 86 screen: AyudaNavigator,
89 87 navigationOptions: () => ({
90   - title: 'Ayuda',
  88 + title: 'Ayuda y Estadísticas',
91 89 })
92 90 }
93 91 }, {
... ...
... ... @@ -13,6 +13,7 @@ export const INFO_PY_URL = 'https://informacionpublica.paraguay.gov.py/portal/'
13 13 export const PORTAL_DENUNCIAS_URL = 'http://www.denuncias.gov.py'
14 14 export const TUTORIAL_AIF_URL = 'https://youtu.be/W8jG3md7YFg'
15 15 export const TUTORIAL_APP = `${BACKEND_URL}/index.html`
  16 +export const PORTAL_ESTADISTICAS = 'https://informacionpublica.paraguay.gov.py/portal/#!/estadisticas'
16 17
17 18 export const ESTADOS_SOLICITUDES = {
18 19 finalizados: [
... ...
... ... @@ -6,9 +6,9 @@ import { fetchAfterPost,
6 6 changePage
7 7 } from './solicitudes'
8 8
9   -import {
10   - logAll,
11   -} from './logger'
  9 +// import {
  10 +// logAll,
  11 +// } from './logger'
12 12
13 13 import {
14 14 renewToken
... ... @@ -26,7 +26,7 @@ import {
26 26
27 27 export default combineEpics(
28 28 fetchAfterPost,
29   - logAll,
  29 + // logAll,
30 30 askLocationOnPost,
31 31 getLocationOnGrant,
32 32 postLocationOnReceive,
... ...
... ... @@ -6,7 +6,8 @@ import { connect } from 'react-redux'
6 6 import {
7 7 PORTAL_DENUNCIAS_URL,
8 8 TUTORIAL_AIF_URL,
9   - TUTORIAL_APP
  9 + TUTORIAL_APP,
  10 + PORTAL_ESTADISTICAS
10 11 } from '../../constants'
11 12
12 13 import css from './style'
... ... @@ -62,6 +63,16 @@ class Ayuda extends Component {
62 63 title="Ir al Portal de Denuncias"
63 64 />
64 65 </View>
  66 + <View>
  67 + <Text style={css.label}>
  68 + Estadísticas
  69 + </Text>
  70 + <Button
  71 + buttonStyle={css.btn}
  72 + onPress={this.myHandlePress(PORTAL_ESTADISTICAS)}
  73 + title="Ir al Portal de Estadísticas"
  74 + />
  75 + </View>
65 76 </View>
66 77 )
67 78 }
... ...
1   -import 'moment/locale/es'
2   -import React, { Component } from 'react'
3   -import { View, Text } from 'react-native'
4   -import { connect } from 'react-redux'
5   -import css from './style'
6   -// AIP Movil
7   -
8   -class Estadistica extends Component {
9   - static navigationOptions = () => ({
10   - title: 'Estadisticas',
11   - headerStyle: css.headerStyle,
12   - headerTitleStyle: css.headerTitleStyle
13   - });
14   -
15   -
16   - render() {
17   - return (
18   - <View style={[css.pane, css.fixStatusBar]}>
19   - <Text> ESTADISTICAS </Text>
20   - </View>
21   - )
22   - }
23   -}
24   -
25   -const mapStateToProps = () => ({
26   -})
27   -
28   -const mapDispatchToProps = () => ({
29   -})
30   -
31   -export default connect(mapStateToProps, mapDispatchToProps)(Estadistica)
1   -import { StyleSheet } from 'react-native'
2   -import { merge } from 'ramda'
3   -
4   -import styles from '../../common/styles'
5   -
6   -export default merge(StyleSheet.create({
7   -
8   -}), styles)
Please register or login to post a comment