Skip to content

Commit

Permalink
Converted all the css into Tailwind css of Drawer component
Browse files Browse the repository at this point in the history
  • Loading branch information
subhajit20 committed Sep 28, 2023
1 parent bf27753 commit 9e988e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/Drawer/Drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function Drawer({ children, className, isVisible }) {
<div
className={classNames(
className,
'hidden lg:block transition-all ease-in-out duration-1000 fixed top- bottom-0 overflow-hidden width-full z-[2]',
'hidden lg:block transition-all ease-in-out duration-1000 fixed top-0 bottom-0 overflow-hidden width-full z-[2]',
{
'-left-0': isVisible,
'-left-[100%]': !isVisible,
Expand Down
4 changes: 2 additions & 2 deletions components/Drawer/__tests__/__snapshots__/Drawer.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`Drawer should render with many props assigned 1`] = `
<div
className="test-class hidden lg:block transition-all ease-in-out duration-1000 fixed top- bottom-0 overflow-hidden width-full z-[2] -left-0"
className="test-class hidden lg:block transition-all ease-in-out duration-1000 fixed top-0 bottom-0 overflow-hidden width-full z-[2] -left-0"
>
<div
className="h-full w-full"
Expand All @@ -14,7 +14,7 @@ exports[`Drawer should render with many props assigned 1`] = `

exports[`Drawer should render with required props 1`] = `
<div
className="hidden lg:block transition-all ease-in-out duration-1000 fixed top- bottom-0 overflow-hidden width-full z-[2] -left-[100%]"
className="hidden lg:block transition-all ease-in-out duration-1000 fixed top-0 bottom-0 overflow-hidden width-full z-[2] -left-[100%]"
>
<div
className="h-full w-full"
Expand Down

0 comments on commit 9e988e9

Please sign in to comment.