File tree Expand file tree Collapse file tree 3 files changed +13
-47
lines changed Expand file tree Collapse file tree 3 files changed +13
-47
lines changed Original file line number Diff line number Diff line change 1
1
import { node , string , bool } from 'prop-types' ;
2
2
import classNames from 'classnames' ;
3
- import styles from './Drawer.module.css' ;
4
3
5
4
Drawer . propTypes = {
6
5
children : node . isRequired ,
@@ -16,12 +15,16 @@ Drawer.defaultProps = {
16
15
function Drawer ( { children, className, isVisible } ) {
17
16
return (
18
17
< div
19
- className = { classNames ( className , {
20
- [ styles . visible ] : isVisible ,
21
- [ styles . hidden ] : ! isVisible ,
22
- } ) }
18
+ className = { classNames (
19
+ className ,
20
+ 'hidden lg:block transition-all ease-in-out duration-1000 fixed top-0 bottom-0 overflow-hidden width-full z-[2]' ,
21
+ {
22
+ '-left-0' : isVisible ,
23
+ '-left-[100%]' : ! isVisible ,
24
+ } ,
25
+ ) }
23
26
>
24
- < div className = { styles . content } > { children } </ div >
27
+ < div className = "h-full w-full" > { children } </ div >
25
28
</ div >
26
29
) ;
27
30
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
3
3
exports [` Drawer should render with many props assigned 1` ] = `
4
4
<div
5
- className = " test-class visible "
5
+ 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 "
6
6
>
7
7
<div
8
- className = " content "
8
+ className = " h-full w-full "
9
9
>
10
10
Test
11
11
</div >
@@ -14,10 +14,10 @@ exports[`Drawer should render with many props assigned 1`] = `
14
14
15
15
exports [` Drawer should render with required props 1` ] = `
16
16
<div
17
- className = " hidden"
17
+ className = " hidden lg:block transition-all ease-in-out duration-1000 fixed top-0 bottom-0 overflow-hidden width-full z-[2] -left-[100%] "
18
18
>
19
19
<div
20
- className = " content "
20
+ className = " h-full w-full "
21
21
>
22
22
Test
23
23
</div >
You can’t perform that action at this time.
0 commit comments