Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 1567 | Rev 2194 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1567 Rev 2110
Línea 1... Línea 1...
1
import React, { useEffect, useState } from 'react'
1
import React, { useEffect, useState } from 'react'
2
import { useDispatch } from 'react-redux'
2
import { useDispatch } from 'react-redux'
Línea 3... Línea 3...
3
 
3
 
4
import { axios } from 'utils/index'
4
import { axios } from '@app/utils'
Línea 5... Línea 5...
5
import { addNotification } from '../../../../redux/notification/notification.actions'
5
import { addNotification } from '@app/redux/notification/notification.actions'
6
 
6
 
7
import Modal from 'components/UI/modal/Modal'
-
 
8
import TextInput from 'components/UI/inputs/TextInput'
7
import Modal from '@app/components/UI/modal/Modal'
Línea 9... Línea 8...
9
import FormErrorFeedback from 'components/UI/form/FormErrorFeedback'
8
import Input from '@app/components/UI/inputs/Input'
10
import Button from '@app/components/UI/buttons/Buttons'
9
import Button from '@app/components/UI/buttons/Buttons'
11
 
10
 
Línea 57... Línea 56...
57
    }
56
    }
58
  }, [shareData, show])
57
  }, [shareData, show])
Línea 59... Línea 58...
59
 
58
 
60
  return (
59
  return (
-
 
60
    <Modal show={show} onClose={onClose}>
-
 
61
      <Input
-
 
62
        value={shareUrl}
61
    <Modal show={show} onClose={onClose}>
63
        readOnly
62
      {state === 'error' ? (
64
        error={
63
        <FormErrorFeedback>
65
          state === 'error'
64
          No se pudo copiar al portapapeles, por favor copia la url manualmente
66
            ? 'No se pudo copiar al portapapeles, por favor copia la url manualmente para compartir.'
65
          para compartir.
67
            : null
66
        </FormErrorFeedback>
68
        }
67
      ) : null}
-
 
68
 
-
 
Línea 69... Línea 69...
69
      <TextInput type='text' value={shareUrl} readOnly />
69
      />
70
 
70
 
71
      <Button variant='primary' onClick={copyClicked}>
71
      <Button variant='primary' onClick={copyClicked}>
72
        {getButtonText(state)}
72
        {getButtonText(state)}