From ceb00418a472c0b3cf7da19a33de551fed6beb1c Mon Sep 17 00:00:00 2001 From: danidfra Date: Mon, 4 Nov 2024 17:10:56 -0300 Subject: [PATCH] Change classNames "privacy-dropdown" to use only Tailwind --- .../compose/components/privacy-dropdown.tsx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/features/compose/components/privacy-dropdown.tsx b/src/features/compose/components/privacy-dropdown.tsx index 2571589b7..234119a62 100644 --- a/src/features/compose/components/privacy-dropdown.tsx +++ b/src/features/compose/components/privacy-dropdown.tsx @@ -37,9 +37,10 @@ interface IPrivacyDropdownMenu { onClose: () => void; onChange: (value: string | null) => void; unavailable?: boolean; + active: boolean; } -const PrivacyDropdownMenu: React.FC = ({ style, items, placement, value, onClose, onChange }) => { +const PrivacyDropdownMenu: React.FC = ({ style, items, placement, value, onClose, onChange, active }) => { const node = useRef(null); const focusedItem = useRef(null); @@ -120,15 +121,15 @@ const PrivacyDropdownMenu: React.FC = ({ style, items, pla // It should not be transformed when mounting because the resulting // size will be used to determine the coordinate of the menu by // react-overlays -
+
{items.map(item => ( -
-
+
+
-
- {item.text} +
+ {item.text} {item.meta}
@@ -239,8 +240,8 @@ const PrivacyDropdown: React.FC = ({ const valueOption = options.find(item => item.value === value); return ( -
-
+
+
= ({ onClose={handleClose} onChange={onChange} placement={placement} + active={open} />