Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 6730 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 6730 Rev 6731
Línea 1... Línea 1...
1
import React from 'react'
1
import React from 'react'
Línea 2... Línea 2...
2
 
2
 
3
const TitleSection = ({ onAdd, title, addLabel }) => {
3
const TitleSection = ({ onAdd, title, addLabel = 'Agregar' }) => {
4
  return (
4
  return (
5
    <div className="company-title">
5
    <div className="company-title">
6
      <h1 className="title mx-auto">{title}</h1>
6
      <h1 className="title mx-auto">{title}</h1>
7
      {addLabel && (
7
      {onAdd && (
8
        <h2 className="title cursor-pointer" onClick={onAdd}>
8
        <h2 className="title cursor-pointer" onClick={onAdd}>
9
          {addLabel}
9
          {addLabel}
10
        </h2>
10
        </h2>
11
      )}
11
      )}