♻️ (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:
parent
7d1fde6e7f
commit
6fbb8da13e
1 changed files with 3 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue