1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-13 05:39:59 +00:00

12.0 wiki page can add sub page (#6165)

* 00 add page.children

* 01 add delete inner page

* 02 change page indent and path

* 03 change top nav style

* 04 change svg and var name

* 05 move pages into or out folder

* 06 change codes
This commit is contained in:
Michael An
2024-06-07 09:45:05 +08:00
committed by GitHub
parent e5b696b098
commit 440fde0553
19 changed files with 632 additions and 416 deletions

View File

@@ -4,9 +4,9 @@ import Icon from '../../../components/icon';
import classNames from 'classnames';
import './nav-item-icon.css';
function NavItemIcon({ symbol, className, disable }) {
function NavItemIcon({ symbol, className, disable, onClick }) {
return (
<div className={classNames('nav-item-icon', {'nav-item-icon-disable': disable})}>
<div onClick={onClick} className={classNames('nav-item-icon', {'nav-item-icon-disable': disable})}>
<Icon symbol={symbol} className={className} />
</div>
);
@@ -16,6 +16,7 @@ NavItemIcon.propTypes = {
symbol: PropTypes.string.isRequired,
className: PropTypes.string,
disable: PropTypes.bool,
onClick: PropTypes.func,
};
export default NavItemIcon;