ywana-core8 0.0.884 → 0.0.885

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.884",
3
+ "version": "0.0.885",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
package/src/html/menu.js CHANGED
@@ -1,8 +1,10 @@
1
1
  import React, { useContext, useState } from 'react'
2
2
  import { Icon } from './icon';
3
+ import { Text, TEXTFORMATS } from './text';
3
4
  import './menu.css'
4
5
 
5
6
 
7
+
6
8
  /**
7
9
  * Page Context
8
10
  */
@@ -63,10 +65,12 @@ export const MenuItem = (props) => {
63
65
  }
64
66
 
65
67
  const style = disabled ? "disabled" : ""
68
+ const labelTxt = label ? <Text format={TEXTFORMATS.STRING}>{label}</Text> : null
69
+
66
70
  return (
67
71
  <li className={`menu-item ${style}`} onClick={select}>
68
72
  {icon ? <Icon icon={icon} /> : null}
69
- <label>{label}</label>
73
+ <label>{labelTxt}</label>
70
74
  {meta ? <div className="meta">{meta}</div> : null}
71
75
  </li>
72
76
  )