ywana-core8 0.0.876 → 0.0.877
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/dist/index.cjs +5 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +5 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +5 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/site/site.js +3 -3
package/package.json
CHANGED
package/src/site/site.js
CHANGED
@@ -109,7 +109,7 @@ export const Site = ({ icon, iconSrc, logo, title, toolbar, footer, children, in
|
|
109
109
|
<div className="site6">
|
110
110
|
<SiteHeader icon={icon} iconSrc={iconSrc} title={title} />
|
111
111
|
<SiteToolBar >{toolbar}</SiteToolBar>
|
112
|
-
<SiteMenu
|
112
|
+
<SiteMenu iconSrc={iconSrc} title={title} min={min} >{children}</SiteMenu>
|
113
113
|
<SitePage init={init}>
|
114
114
|
{children}
|
115
115
|
<Page id="EMPTY">EMPTY</Page>
|
@@ -179,7 +179,7 @@ const SiteAside = () => {
|
|
179
179
|
/**
|
180
180
|
* SiteMenu
|
181
181
|
*/
|
182
|
-
const SiteMenu = ({
|
182
|
+
const SiteMenu = ({ iconSrc, title, children, min }) => {
|
183
183
|
|
184
184
|
const context = useContext(SiteContext)
|
185
185
|
const { page, sideNav, setSideNav, showNav } = context
|
@@ -212,7 +212,7 @@ const SiteMenu = ({ logo, title, children, min }) => {
|
|
212
212
|
const menutTitle = sideNav === 'max' ? title : ''
|
213
213
|
return (
|
214
214
|
<menu className={`${style} ${showNav ? 'show' : ''}`}>
|
215
|
-
<Header title={menutTitle} />
|
215
|
+
<Header title={menutTitle} iconSrc={iconSrc} />
|
216
216
|
<main >
|
217
217
|
{Object.keys(sections).map(title => (
|
218
218
|
<Fragment key={title}>
|