ywana-core8 0.0.424 → 0.0.425
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 +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +3 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +3 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/site/site.js +4 -1
package/package.json
CHANGED
package/src/site/site.js
CHANGED
@@ -2,6 +2,7 @@ import React, { Children, Fragment, useState, useContext, useEffect } from 'reac
|
|
2
2
|
import { Icon } from '../html/icon'
|
3
3
|
import { Tabs, Tab } from '../html/tab'
|
4
4
|
import { Header } from '../html/header'
|
5
|
+
import { Tooltip } from '../html/tooltip'
|
5
6
|
import { Page } from './page'
|
6
7
|
import { SiteContext } from './siteContext'
|
7
8
|
import './site.css'
|
@@ -230,7 +231,9 @@ const SiteMenu = ({ logo, title, children, min }) => {
|
|
230
231
|
const styleItem = id === page ? 'selected' : ''
|
231
232
|
return (
|
232
233
|
<div className={`site-menu-item ${styleItem}`} key={id} onClick={() => goto(id)}>
|
233
|
-
<
|
234
|
+
<Tooltip text={title}>
|
235
|
+
<Icon key={id} icon={icon} clickable action={() => goto(id)} />
|
236
|
+
</Tooltip>
|
234
237
|
{sideNav === 'max' ? <label>{title}</label> : null}
|
235
238
|
</div>
|
236
239
|
)
|