ywana-core8 0.0.248 → 0.0.249

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.248",
3
+ "version": "0.0.249",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
package/src/html/text.js CHANGED
@@ -17,9 +17,6 @@ export const TEXTFORMATS = {
17
17
  export const Text = ({ format, children }) => {
18
18
 
19
19
  const site = useContext(SiteContext)
20
-
21
- console.log('xxx',format, site)
22
-
23
20
  let value = children
24
21
 
25
22
  if (site) {
@@ -31,7 +28,7 @@ export const Text = ({ format, children }) => {
31
28
 
32
29
  const formatter = Intl.NumberFormat()
33
30
  switch (format) {
34
- case FORMATS.NUMERIC: value = formatter.format(children); break;
31
+ case TEXTFORMATS.NUMERIC: value = formatter.format(children); break;
35
32
  }
36
33
 
37
34
  return children ? <span>{value}</span> : ''