From 396b2db14d848106dbc49c51d758f8ffeb109072 Mon Sep 17 00:00:00 2001 From: fabiolalombardim Date: Sun, 25 Feb 2024 18:44:16 +0100 Subject: [PATCH 01/10] layout --- src/modules/explorer/components/Dropdown.tsx | 21 +++- .../explorer/components/FiltersDialog.tsx | 101 ++++++++++++++++++ .../components/ProposalActionsDialog.tsx | 1 - .../explorer/components/ResponsiveDialog.tsx | 6 +- .../explorer/pages/Proposals/index.tsx | 26 +++++ 5 files changed, 147 insertions(+), 8 deletions(-) create mode 100644 src/modules/explorer/components/FiltersDialog.tsx diff --git a/src/modules/explorer/components/Dropdown.tsx b/src/modules/explorer/components/Dropdown.tsx index 856209f6..e40b7cd5 100644 --- a/src/modules/explorer/components/Dropdown.tsx +++ b/src/modules/explorer/components/Dropdown.tsx @@ -5,6 +5,7 @@ interface DropdownProps extends SelectProps { value?: string | undefined onSelected?: (item: string | undefined) => void isFirst?: boolean + isFilter?: boolean } const useStyles = makeStyles((theme: Theme) => ({ @@ -24,17 +25,29 @@ const useStyles = makeStyles((theme: Theme) => ({ minHeight: 24 }, option: { - "padding": 8, + "padding": 12, "fontFamily": "Roboto Flex", "cursor": "pointer", "text-transform": "capitalize", "&:hover": { background: "rgba(129, 254, 183, .4)" } + }, + selectFilter: { + "backgroundColor": "#2F3438", + "padding": 12, + "borderRadius": 8, + "paddingRight": "36px !important", + "&:focus": { + backgroundColor: "#2F3438", + padding: 12, + borderRadius: 8, + paddingRight: 36 + } } })) -export const Dropdown: React.FC = ({ options, value, onSelected }) => { +export const Dropdown: React.FC = ({ options, value, onSelected, isFilter = false }) => { const classes = useStyles() const [selected, setSelected] = useState(value) @@ -49,11 +62,11 @@ export const Dropdown: React.FC = ({ options, value, onSelected } return (