♻️ (DropdownButtonComponent/index.tsx): refactor className logic to improve readability and maintainability

🐛 (DropdownButtonComponent/index.tsx): fix issue with className not being applied correctly when dropdownOptions is present
This commit is contained in:
cristhianzl 2024-03-30 08:27:38 -03:00
commit 6fbb8da13e

View file

@ -25,7 +25,9 @@ export default function DropdownButton({
<Button
id="new-project-btn"
variant="primary"
className={"relative" + dropdownOptions ? "" : " pr-10"}
className={
"relative" + dropdownOptions ? " pl-[12px]" : " pl-[12px] pr-10"
}
onClick={(event) => {
event.stopPropagation();
event.preventDefault();