aboutsummaryrefslogtreecommitdiff
path: root/src/components/Image
diff options
context:
space:
mode:
authorEugene Sokolov <eug-vs@keemail.me>2020-08-17 19:33:53 +0300
committerGitHub <noreply@github.com>2020-08-17 19:33:53 +0300
commit6c9ee57d83d30d598062cfa95a73555808e04e7f (patch)
treedde56a20e1a18b64cc93bc408981a65ee5f7a427 /src/components/Image
parent0a42a6d26fad6d878e4135b218166872c6b6687b (diff)
parent3b72a38197b1a1cff1c059ed5c55bf9f9d50569d (diff)
downloadwhich-ui-6c9ee57d83d30d598062cfa95a73555808e04e7f.tar.gz
Merge pull request #89 from which-ecosystem/bugs
Bug fixes
Diffstat (limited to 'src/components/Image')
-rw-r--r--src/components/Image/Image.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/Image/Image.tsx b/src/components/Image/Image.tsx
index 1898716..716736f 100644
--- a/src/components/Image/Image.tsx
+++ b/src/components/Image/Image.tsx
@@ -15,6 +15,9 @@ interface PropTypes {
type Status = 'success' | 'loading' | 'error';
const useStyles = makeStyles(theme => ({
+ image: {
+ imageOrientation: 'from-image'
+ },
container: {
width: '100%',
height: '100%',
@@ -71,7 +74,7 @@ const Image: React.FC<PropTypes> = React.memo(({
<img
src={src}
alt={alt}
- className={`${className} ${classes[status]}`}
+ className={`${classes.image} ${classes[status]} ${className}`}
style={{ transition }}
onLoad={handleLoad}
onError={handleError}