imbric-theme 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -67,7 +67,6 @@ export const Sidebar = ({ getStyles, menuCollapseView }) => {
67
67
  >
68
68
  {item.text}
69
69
  </ItemMenu>
70
-
71
70
  : null
72
71
 
73
72
  ))}
@@ -5,12 +5,9 @@ import styles from './ItemMenu.module.css'
5
5
  import { options } from './constants'
6
6
  import withStyles from '../../hocs/withStyles'
7
7
 
8
- import { Link, Route, BrowserRouter } from 'react-router-dom'
9
-
10
8
  import Icon from '../../atoms/Icon'
11
9
 
12
-
13
- export const ItemMenu = ({ children, getStyles, size, icon, color, background, subMenu, itemSubmenu, toHref }) => {
10
+ export const ItemMenu = ({ children, getStyles, size, icon, color, background, subMenu, itemSubmenu }) => {
14
11
 
15
12
  //create initial menuCollapse state using useState hook
16
13
  const [subMenuCollapse, setSubMenuCollapse] = useState(false)
@@ -25,33 +22,29 @@ export const ItemMenu = ({ children, getStyles, size, icon, color, background, s
25
22
  if (!subMenu) {
26
23
  return (
27
24
  <>
28
- <BrowserRouter>
29
- <Link to={toHref}>
30
- <li className={getStyles('pro-menu-item')}>
25
+ <li className={getStyles('pro-menu-item')}>
31
26
 
32
- <div className={getStyles('pro-inner-item')}>
27
+ <div className={getStyles('pro-inner-item')}>
33
28
 
34
- <span className={getStyles('pro-icon-wrapper')}>
29
+ <span className={getStyles('pro-icon-wrapper')}>
35
30
 
36
- <span className={getStyles('pro-icon')}>
37
- <Icon
38
- size={size}
39
- name={icon}
40
- color={color}
41
- background={background}
42
- onClick={function noRefCheck() { }}
43
- />
44
- </span>
31
+ <span className={getStyles('pro-icon')}>
32
+ <Icon
33
+ size={size}
34
+ name={icon}
35
+ color={color}
36
+ background={background}
37
+ onClick={function noRefCheck() { }}
38
+ />
39
+ </span>
45
40
 
46
- </span>
41
+ </span>
47
42
 
48
- <span className={getStyles('pro-item-content', { 'color': color })}>{children}</span>
43
+ <span className={getStyles('pro-item-content', { 'color': color })}>{children}</span>
49
44
 
50
- </div>
45
+ </div>
51
46
 
52
- </li>
53
- </Link>
54
- </BrowserRouter>
47
+ </li>
55
48
  </>
56
49
  )
57
50
  } else {
@@ -117,7 +110,6 @@ ItemMenu.propTypes = {
117
110
 
118
111
  ItemMenu.defaultProps = {
119
112
  subMenu: false,
120
- toHref: '/',
121
113
  icon: 'home',
122
114
  size: 'lg',
123
115
  color: 'highlight',
@@ -16,7 +16,6 @@ export default {
16
16
  children: 'Home',
17
17
  subMenu: false,
18
18
  itemSubmenu: options.itemSubmenu,
19
- toHref: '/',
20
19
  },
21
20
  argTypes: {
22
21
  itemSubmenu: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imbric-theme",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Components library IMBRIC",
5
5
  "private": false,
6
6
  "main": "index.js",
@@ -8,8 +8,3 @@ body {
8
8
  #root {
9
9
  height: 100%;
10
10
  }
11
-
12
- a:-webkit-any-link {
13
- cursor: pointer;
14
- text-decoration: none;
15
- }