mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-18 00:00:00 +00:00
12.0 change edit wiki page style (#6109)
* 00 change className from app * change wiki2 side panel style
This commit is contained in:
21
frontend/src/pages/wiki2/view-structure/nav-item-icon.jsx
Normal file
21
frontend/src/pages/wiki2/view-structure/nav-item-icon.jsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import Icon from '../../../components/icon';
|
||||
import classNames from 'classnames';
|
||||
import './nav-item-icon.css';
|
||||
|
||||
function NavItemIcon({ symbol, className, disable }) {
|
||||
return (
|
||||
<div className={classNames('nav-item-icon', {'nav-item-icon-disable': disable})}>
|
||||
<Icon symbol={symbol} className={className} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
NavItemIcon.propTypes = {
|
||||
symbol: PropTypes.string.isRequired,
|
||||
className: PropTypes.string,
|
||||
disable: PropTypes.bool,
|
||||
};
|
||||
|
||||
export default NavItemIcon;
|
Reference in New Issue
Block a user