Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 2917 Rev 3694
Línea 1... Línea 1...
1
import React from 'react'
1
import React from 'react';
2
import { useDispatch, useSelector } from 'react-redux'
2
import { useDispatch, useSelector } from 'react-redux';
3
import { Avatar, Box, Button, Typography, styled } from '@mui/material'
3
import { Avatar, Box, Button, Typography, styled } from '@mui/material';
4
import {
-
 
5
  Image,
4
import Image from '@mui/icons-material/Image';
6
  Create,
5
import Create from '@mui/icons-material/Create';
7
  Article,
6
import Article from '@mui/icons-material/Article';
8
  PostAdd,
-
 
9
  Subscriptions
7
import PostAdd from '@mui/icons-material/PostAdd';
10
} from '@mui/icons-material'
8
import Subscriptions from '@mui/icons-material/Subscriptions';
Línea 11... Línea 9...
11
 
9
 
12
import { openShareModal } from '@app/redux/share-modal/shareModal.actions'
10
import { openShareModal } from '@app/redux/share-modal/shareModal.actions';
Línea 13... Línea 11...
13
import { shareModalTypes } from '@app/redux/share-modal/shareModal.types'
11
import { shareModalTypes } from '@app/redux/share-modal/shareModal.types';
14
 
12
 
Línea 15... Línea 13...
15
import Widget from '@app/components/UI/Widget'
13
import Widget from '@app/components/UI/Widget';
16
import Input from '@components/UI/inputs/Input'
14
import Input from '@components/UI/inputs/Input';
17
 
15
 
18
const Option = styled(Button)(({ theme }) => ({
16
const Option = styled(Button)(({ theme }) => ({
Línea 34... Línea 32...
34
    flex: 1,
32
    flex: 1,
35
    span: {
33
    span: {
36
      display: 'initial'
34
      display: 'initial'
37
    }
35
    }
38
  }
36
  }
39
}))
37
}));
Línea 40... Línea 38...
40
 
38
 
41
const ShareComponent = ({ feedType, postUrl = '', image = '' }) => {
39
const ShareComponent = ({ feedType, postUrl = '', image = '' }) => {
42
  const labels = useSelector(({ intl }) => intl.labels)
40
  const labels = useSelector(({ intl }) => intl.labels);
Línea 43... Línea -...
43
  const dispatch = useDispatch()
-
 
44
 
41
  const dispatch = useDispatch();
Línea 45... Línea 42...
45
  const onClickHandler = (postType) =>
42
 
46
    dispatch(openShareModal(postUrl, postType, feedType))
43
  const onClickHandler = (postType) => dispatch(openShareModal(postUrl, postType, feedType));
47
 
44
 
48
  return (
45
  return (
Línea 101... Línea 98...
101
            <Typography variant='overline'>{labels.write}</Typography>
98
            <Typography variant='overline'>{labels.write}</Typography>
102
          </Option>
99
          </Option>
103
        </Box>
100
        </Box>
104
      </Widget.Body>
101
      </Widget.Body>
105
    </Widget>
102
    </Widget>
106
  )
103
  );
107
}
104
};
Línea 108... Línea 105...
108
 
105