From 06fc98b6b958221fa180f57f702c348f15b31f1c Mon Sep 17 00:00:00 2001 From: sct Date: Thu, 24 Dec 2020 21:28:33 +0900 Subject: [PATCH] fix(frontend): add margin to ButtonWithDropdown component on movie/tv details page --- .../Common/ButtonWithDropdown/index.tsx | 17 +++++++++-------- src/components/MovieDetails/index.tsx | 1 + src/components/TvDetails/index.tsx | 1 + 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/components/Common/ButtonWithDropdown/index.tsx b/src/components/Common/ButtonWithDropdown/index.tsx index 7a9940b39..0165d5ae7 100644 --- a/src/components/Common/ButtonWithDropdown/index.tsx +++ b/src/components/Common/ButtonWithDropdown/index.tsx @@ -14,7 +14,7 @@ const DropdownItem: React.FC> = ({ ...props }) => ( {children} @@ -31,6 +31,7 @@ const ButtonWithDropdown: React.FC = ({ text, children, dropdownIcon, + className, ...props }) => { const [isOpen, setIsOpen] = useState(false); @@ -38,22 +39,22 @@ const ButtonWithDropdown: React.FC = ({ useClickOutside(buttonRef, () => setIsOpen(false)); return ( - + - + {children && (