Skip to content

Commit

Permalink
refactor use classnames
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Jan 4, 2023
1 parent cdb20dc commit e3b157e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/CAREUI/interactive/SlideOver.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@ export default function SlideOver({
leaveTo={directionClasses[slideFrom].animateStart + " opacity-0"}
>
<Dialog.Panel
className={`fixed pointer-events-auto ${
directionClasses[slideFrom].stick
} ${onlyChild || "md:p-2"}`}
className={classNames(
"fixed pointer-events-auto",
directionClasses[slideFrom].stick,
!onlyChild && "md:p-2"
)}
>
{onlyChild ? (
children
Expand Down

0 comments on commit e3b157e

Please sign in to comment.