Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16678 Rev 16679
Línea 134... Línea 134...
134
    clearErrors('file')
134
    clearErrors('file')
135
  }
135
  }
Línea 136... Línea 136...
136
 
136
 
137
  return (
137
  return (
138
    <Modal show={isOpen} onHide={closeModal} autoFocus={false}>
-
 
139
      <form onSubmit={handleSubmit(onSubmit)}>
138
    <Modal show={isOpen} onHide={closeModal} autoFocus={false}>
140
        <Modal.Header closeButton>
139
      <Modal.Header closeButton>
141
          <Modal.Title>Compartir una publicación</Modal.Title>
140
        <Modal.Title>Compartir una publicación</Modal.Title>
142
        </Modal.Header>
141
      </Modal.Header>
-
 
142
      <Modal.Body>
143
        <Modal.Body>
143
        <form onSubmit={handleSubmit(onSubmit)}>
144
          {!loading ? (
144
          {!loading ? (
145
            <>
145
            <>
146
              {modalType === shareModalTypes.SURVEY && (
146
              {modalType === shareModalTypes.SURVEY && (
147
                <SurveyForm register={register} />
147
                <SurveyForm register={register} />
Línea 172... Línea 172...
172
              )}
172
              )}
173
            </>
173
            </>
174
          ) : (
174
          ) : (
175
            <Spinner />
175
            <Spinner />
176
          )}
176
          )}
177
        </Modal.Body>
-
 
178
        <Modal.Footer>
-
 
-
 
177
 
179
          <button
178
          <button
180
            className="btn btn-sm btn-primary"
179
            className="btn btn-sm btn-primary"
181
            disabled={loading}
180
            disabled={loading}
182
            type="submit"
181
            type="submit"
183
          >
182
          >
Línea 197... Línea 196...
197
            disabled={loading}
196
            disabled={loading}
198
            onClick={() => dispatch(setModalType(shareModalTypes.SURVEY))}
197
            onClick={() => dispatch(setModalType(shareModalTypes.SURVEY))}
199
          >
198
          >
200
            Añadir encuesta
199
            Añadir encuesta
201
          </button>
200
          </button>
202
        </Modal.Footer>
201
        </form>
203
      </form>
202
      </Modal.Body>
204
    </Modal>
203
    </Modal>
205
  )
204
  )
206
}
205
}
Línea 207... Línea 206...
207
 
206