Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 7789 Rev 7790
Línea 134... Línea 134...
134
            <form encType="multipart/form-data" onSubmit={handleSubmit(onSubmit)}>
134
            <form encType="multipart/form-data" onSubmit={handleSubmit(onSubmit)}>
135
                <Modal.Header closeButton>
135
                <Modal.Header closeButton>
136
                    <Modal.Title>Compartir una publicación</Modal.Title>
136
                    <Modal.Title>Compartir una publicación</Modal.Title>
137
                </Modal.Header>
137
                </Modal.Header>
138
                <Modal.Body>
138
                <Modal.Body>
-
 
139
                    <DescriptionInput
-
 
140
                        name="description"
-
 
141
                        setValue={setValue}
-
 
142
                    />
-
 
143
                    {errors.description && <p>{errors.description.message}</p>}
139
                    {
144
                    {
140
                        loading
-
 
141
                            ? <Spinner />
-
 
142
                            :
-
 
143
                            <>
-
 
144
                                <DescriptionInput
-
 
145
                                    name="description"
-
 
146
                                    setValue={setValue}
-
 
147
                                />
-
 
148
                                {errors.description && <p>{errors.description.message}</p>}
-
 
149
                                {
-
 
150
                                    modalType !== shareModalTypes.POST
145
                        modalType !== shareModalTypes.POST
151
                                    &&
146
                        &&
152
                                    <DropzoneComponent
147
                        <DropzoneComponent
153
                                        modalType={modalType}
148
                            modalType={modalType}
154
                                        onUploaded={onUploadedHandler}
149
                            onUploaded={onUploadedHandler}
155
                                        settedFile={getValues("file")}
150
                            settedFile={getValues("file")}
156
                                        recomendationText={recomendationText[modalType]}
151
                            recomendationText={recomendationText[modalType]}
157
                                    />
-
 
158
                                }
-
 
159
                                {errors.file && <p>{errors.file.message}</p>}
-
 
160
                            </>
152
                        />
161
                    }
153
                    }
-
 
154
                    {errors.file && <p>{errors.file.message}</p>}
162
                </Modal.Body>
155
                </Modal.Body>
163
                <Modal.Footer>
156
                <Modal.Footer>
164
                    <Button
157
                    <Button
165
                        size="sm"
158
                        size="sm"
166
                        type="submit"
159
                        type="submit"
Línea 177... Línea 170...
177
                    >
170
                    >
178
                        Cancelar
171
                        Cancelar
179
                    </Button>
172
                    </Button>
180
                </Modal.Footer>
173
                </Modal.Footer>
181
            </form>
174
            </form>
-
 
175
            {loading
-
 
176
                &&
-
 
177
                <Spinner />
-
 
178
            }
182
        </Modal>
179
        </Modal>
183
    );
180
    );
184
};
181
};
Línea 185... Línea 182...
185
 
182
 
186
export default ShareModal
183
export default ShareModal