Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 875 Rev 3101
Línea 1... Línea 1...
1
import React from 'react'
1
import React from 'react'
2
import styled from 'styled-components'
2
import { Box, styled, Typography } from '@mui/material'
Línea 3... Línea 3...
3
 
3
 
4
const StyledEmptyContainer = styled.div`
4
const EmptyContainer = styled(Box)`
5
  display: flex;
-
 
6
  align-items: ${(props) => (props.align ? props.align : 'left')};
5
  display: flex;
7
  box-sizing: border-box;
6
  box-sizing: border-box;
8
  justify-content: center;
7
  justify-content: center;
9
  flex-direction: column;
8
  flex-direction: column;
10
  padding: 1rem;
9
  padding: 1rem;
11
  width: 100%;
10
  width: 100%;
12
  flex-grow: 1;
-
 
13
  p {
-
 
14
    font-weight: 600;
-
 
15
  }
11
  flex-grow: 1;
Línea 16... Línea 12...
16
`
12
`
17
 
13
 
18
const EmptySection = ({
14
const EmptySection = ({
Línea 25... Línea 21...
25
    right: 'flex-end',
21
    right: 'flex-end',
26
    center: 'center'
22
    center: 'center'
27
  }
23
  }
Línea 28... Línea 24...
28
 
24
 
29
  return (
25
  return (
30
    <StyledEmptyContainer align={alignOptions[align]}>
26
    <EmptyContainer alignItems={alignOptions[align]}>
31
      {Icon && Icon}
27
      {Icon && Icon}
32
      <p>{message}</p>
28
      <Typography sx={{ fontWeight: 600 }}>{message}</Typography>
33
    </StyledEmptyContainer>
29
    </EmptyContainer>
34
  )
30
  )
Línea 35... Línea 31...
35
}
31
}