Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 2851 Rev 2852
Línea 21... Línea 21...
21
import { addNotification } from '@app/redux/notification/notification.actions'
21
import { addNotification } from '@app/redux/notification/notification.actions'
22
import colors from '@styles/colors'
22
import colors from '@styles/colors'
Línea 23... Línea 23...
23
 
23
 
Línea 24... Línea 24...
24
import SharePopup from './mobile-share/MobileSharePopUp'
24
import SharePopup from './mobile-share/MobileSharePopUp'
25
 
25
 
26
const StyledShareContainer = styled('div')(({ theme }) => ({
26
const ShareContainer = styled('div')(({ theme }) => ({
27
  display: 'flex',
27
  display: 'flex',
28
  position: 'absolute',
28
  position: 'absolute',
29
  alignItems: 'center',
29
  alignItems: 'center',
30
  padding: theme.spacing(0.5),
30
  padding: theme.spacing(0.5),
31
  bottom: `calc(100% + ${theme.spacing(0.5)})`,
31
  bottom: `calc(100% + ${theme.spacing(0.5)})`,
32
  gap: theme.spacing(0.5),
32
  gap: theme.spacing(0.5),
33
  right: 0,
33
  right: 0,
-
 
34
  borderRadius: theme.shape.borderRadius,
34
  borderRadius: theme.shape.borderRadius,
35
  backgroundColor: colors.main,
Línea 35... Línea 36...
35
  backgroundColor: colors.main
36
  border: `1px solid ${colors.border.primary}`
36
}))
37
}))
37
 
38
 
Línea 103... Línea 104...
103
      <>
104
      <>
104
        <Component onClick={handleClick}>
105
        <Component onClick={handleClick}>
105
          {children}
106
          {children}
Línea 106... Línea 107...
106
 
107
 
107
          {showOptions && (
108
          {showOptions && (
108
            <StyledShareContainer>
109
            <ShareContainer>
109
              <FacebookShareButton
110
              <FacebookShareButton
110
                url={shareUrl}
111
                url={shareUrl}
111
                onShareWindowClose={incrementCount}
112
                onShareWindowClose={incrementCount}
112
                disabled={!shareUrl}
113
                disabled={!shareUrl}
Línea 146... Línea 147...
146
                onShareWindowClose={incrementCount}
147
                onShareWindowClose={incrementCount}
147
                disabled={!shareUrl}
148
                disabled={!shareUrl}
148
              >
149
              >
149
                <EmailIcon size={32} round />
150
                <EmailIcon size={32} round />
150
              </EmailShareButton>
151
              </EmailShareButton>
151
            </StyledShareContainer>
152
            </ShareContainer>
152
          )}
153
          )}
153
        </Component>
154
        </Component>
154
        <SharePopup
155
        <SharePopup
155
          show={openPopup}
156
          show={openPopup}
156
          shareData={{ url: shareUrl }}
157
          shareData={{ url: shareUrl }}