Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 7428 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 7428 Rev 15268
Línea 1... Línea 1...
1
import React from 'react'
1
import React from 'react'
2
import { CloseButtonContainer, thumbInnerStyle, thumbStyle } from '../../assets/styles/js-styles/Dropzone'
2
import { CloseButtonContainer, thumbInnerStyle, thumbStyle } from '../../assets/styles/js-styles/Dropzone'
Línea 3... Línea 3...
3
 
3
 
Línea 4... Línea 4...
4
const FilePreview = ({ children, onDeleteFileHandler }) => {
4
const FilePreview = ({ children, onDeleteFileHandler }) => {
5
 
-
 
6
    return (
-
 
7
        <div
-
 
8
            style={{
-
 
9
                ...thumbStyle,
5
 
10
                width: "auto",
-
 
11
                height: "auto"
-
 
12
            }}
6
	return (
13
        >
7
		<div style={{ ...thumbStyle, width: '100%', height: 'auto' }}>
14
            <div style={thumbInnerStyle}>
8
			<div style={thumbInnerStyle}>
15
                {children}
9
				{children}
16
            </div>
10
			</div>
17
            <div
11
			<div
18
                style={CloseButtonContainer}
12
				style={CloseButtonContainer}
19
                onClick={onDeleteFileHandler}
13
				onClick={onDeleteFileHandler}
20
            >
14
			>
21
                <i className="fa fa-close" />
15
				<i className="fa fa-close" />
22
            </div>
16
			</div>
23
        </div>
17
		</div>
24
    )
18
	)
25
}
19
}