mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-27 07:44:50 +00:00
style: format code
This commit is contained in:
14
frontend/src/pages/wiki2/custom-icon.js
Normal file
14
frontend/src/pages/wiki2/custom-icon.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import React from 'react';
|
||||
import ProtoTypes from 'prop-types';
|
||||
|
||||
const CustomIcon = ({ icon }) => {
|
||||
return (
|
||||
<span className='nav-item-icon nav-item-icon-disable'>{icon}</span>
|
||||
);
|
||||
};
|
||||
|
||||
CustomIcon.propTypes = {
|
||||
icon: ProtoTypes.string.isRequired,
|
||||
};
|
||||
|
||||
export default CustomIcon;
|
Reference in New Issue
Block a user