Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 1465 Rev 1531
Línea 1... Línea 1...
1
import React from 'react'
1
import React from 'react'
2
import { NavLink } from 'react-router-dom'
2
import { NavLink } from 'react-router-dom'
3
import styled from 'styled-components'
3
import { Typography, styled } from '@mui/material'
Línea 4... Línea 4...
4
 
4
 
Línea 5... Línea 5...
5
import WidgetLayout from 'components/widgets/WidgetLayout'
5
import WidgetLayout from 'components/widgets/WidgetLayout'
6
 
6
 
Línea 14... Línea 14...
14
      font-weight: 600;
14
      font-weight: 600;
15
    }
15
    }
16
  }
16
  }
17
`
17
`
Línea 18... Línea 18...
18
 
18
 
19
const SideMenu = ({ items = [], onChange = null }) => {
19
const SideMenu = ({ items = [], onChange = null, title = '' }) => {
20
  const onClick = (e, value) => {
20
  const onClick = (e, value) => {
21
    if (onChange) {
21
    if (onChange) {
22
      e.preventDefault()
22
      e.preventDefault()
23
      onChange(value)
23
      onChange(value)
24
    }
24
    }
Línea 25... Línea 25...
25
  }
25
  }
26
 
26
 
-
 
27
  return (
27
  return (
28
    <SideMenuContainer>
28
    <SideMenuContainer>
29
      <Typography variant='h2'>{title}</Typography>
29
      <ul>
30
      <ul>
30
        {items.map(({ value, name }) => (
31
        {items.map(({ value, name }) => (
31
          <li key={value}>
32
          <li key={value}>