refactor(directory): add eslint
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import {
|
||||
import React, {
|
||||
useState
|
||||
} from 'react'
|
||||
import PropTypes from 'prop-types';
|
||||
import './dropdown.css'
|
||||
|
||||
export default function Dropdown(props) {
|
||||
@@ -46,4 +47,12 @@ export default function Dropdown(props) {
|
||||
</section>
|
||||
</>
|
||||
)
|
||||
}
|
||||
}
|
||||
Dropdown.propTypes = {
|
||||
className: PropTypes.string,
|
||||
text: PropTypes.string,
|
||||
menu: PropTypes.array,
|
||||
onClick: PropTypes.func,
|
||||
activeColor: PropTypes.object,
|
||||
activeRule: PropTypes.func,
|
||||
};
|
||||
Reference in New Issue
Block a user