Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 632 Rev 753
Línea 1... Línea 1...
1
import React from "react";
1
import React from 'react'
-
 
2
import styled from 'styled-components'
-
 
3
 
-
 
4
const StyledButton = styled.button`
-
 
5
  &:hover .reactions {
-
 
6
    display: flex;
-
 
7
  }
-
 
8
`
Línea 2... Línea 9...
2
 
9
 
3
const InputOption = ({
10
const InputOption = ({
4
  icon: Icon = null,
11
  icon: Icon = null,
5
  iconColor = "var(--icons-color)",
12
  iconColor = 'var(--icons-color)',
6
  className = "",
13
  className = '',
7
  label = "",
14
  label = '',
8
  children = null,
15
  children = null,
9
  ...rest
16
  ...rest
10
}) => {
17
}) => {
11
  return (
18
  return (
12
    <button className={className} {...rest}>
19
    <StyledButton className={className} {...rest}>
13
      {Icon && <Icon style={{ color: iconColor }} />}
20
      {Icon && <Icon style={{ color: iconColor }} />}
14
      {label}
21
      {label}
15
      {children}
22
      {children}
16
    </button>
23
    </StyledButton>
17
  );
24
  )
Línea 18... Línea 25...
18
};
25
}