From e1de07efe4690d286c019580e9e6b1add6ca17e0 Mon Sep 17 00:00:00 2001 From: Rusi Solanki Date: Sun, 21 Jul 2024 14:52:58 -0400 Subject: [PATCH] Issue 93: Implement dropdownlist component --- .../components/DropdownList/DropdownList.css | 14 ++++++++++ .../components/DropdownList/DropdownList.jsx | 26 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 frontend/src/components/DropdownList/DropdownList.css create mode 100644 frontend/src/components/DropdownList/DropdownList.jsx diff --git a/frontend/src/components/DropdownList/DropdownList.css b/frontend/src/components/DropdownList/DropdownList.css new file mode 100644 index 00000000..f39a2e95 --- /dev/null +++ b/frontend/src/components/DropdownList/DropdownList.css @@ -0,0 +1,14 @@ +.dropdown{ + display: flex; + align-items: center; + justify-content: center; + +} +.select{ + width: 241px; + height: 34px; + font-size: 13px !important; +} +.menuItem{ + font-size: 13px !important; +} diff --git a/frontend/src/components/DropdownList/DropdownList.jsx b/frontend/src/components/DropdownList/DropdownList.jsx new file mode 100644 index 00000000..2397d462 --- /dev/null +++ b/frontend/src/components/DropdownList/DropdownList.jsx @@ -0,0 +1,26 @@ +import MenuItem from '@mui/material/MenuItem'; +import Select from '@mui/material/Select'; +import React from 'react' +import PropTypes from 'prop-types' +import './DropdownList.css' + +const DropdownList = ({actions = []}) => { + return ( +
+ +
+ ) +} + +DropdownList.propTypes = { + actions: PropTypes.array +} + +export default DropdownList