refactor(directory): add eslint

This commit is contained in:
Haoyu Xu
2023-03-02 23:53:46 -05:00
parent 1cbf3357d2
commit 5fc6f60b16
18 changed files with 1387 additions and 294 deletions

View File

@@ -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,
};