ywana-core8 0.0.849 → 0.0.851

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.849",
3
+ "version": "0.0.851",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -52,17 +52,17 @@ export const HTTPClient = (domain, securityCtx) => {
52
52
  return fetchAsync('POST', domain + URL, body, token, headers);
53
53
  },
54
54
 
55
- PUT: (URL, body) => {
55
+ PUT: (URL, body, headers) => {
56
56
  const token = securityCtx ? securityCtx.token() : null;
57
57
  return fetchAsync('PUT', domain + URL, body, token, headers);
58
58
  },
59
59
 
60
- PATCH: (URL, body) => {
60
+ PATCH: (URL, body, headers) => {
61
61
  const token = securityCtx ? securityCtx.token() : null;
62
62
  return fetchAsync('PATCH', domain + URL, body, token, headers);
63
63
  },
64
64
 
65
- DELETE: (URL) => {
65
+ DELETE: (URL, headers) => {
66
66
  const token = securityCtx ? securityCtx.token() : null;
67
67
  return fetchAsync('DELETE', domain + URL, undefined, token, headers);
68
68
  }
package/src/site/site.js CHANGED
@@ -114,11 +114,11 @@ export const SiteProvider = ({ children, siteLang, siteDictionary }) => {
114
114
  /**
115
115
  * Site
116
116
  */
117
- export const Site = ({ icon, logo, title, toolbar, footer, children, init, min, lang, dictionary }) => {
117
+ export const Site = ({ icon, iconSrc, logo, title, toolbar, footer, children, init, min, lang, dictionary }) => {
118
118
  return (
119
119
  <SiteProvider siteLang={lang} siteDictionary={dictionary}>
120
120
  <div className="site6">
121
- <SiteHeader icon={icon} title={title} />
121
+ <SiteHeader icon={icon} iconSrc={iconSrc} title={title} />
122
122
  <SiteToolBar >{toolbar}</SiteToolBar>
123
123
  <SiteMenu logo={logo} title={title} min={min} >{children}</SiteMenu>
124
124
  <SitePage init={init}>