File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change 1
- import { useState } from ' preact/hooks' ;
1
+ import { useState } from " preact/hooks" ;
2
2
3
+ // TODO - Fix accessibility issues in this file and remove the following
4
+ /* eslint-disable jsx-a11y/no-static-element-interactions */
5
+ /* eslint-disable jsx-a11y/click-events-have-key-events */
3
6
interface PanelProps {
4
7
children : any ;
5
8
}
6
- export function Panel ( props : PanelProps ) {
7
- const [ openPanel , setOpenPanel ] = useState ( false )
9
+ export function Panel ( props : PanelProps ) {
10
+ const [ openPanel , setOpenPanel ] = useState ( false ) ;
8
11
return (
9
- < div class = { openPanel ? "panel open" : "panel" } >
10
- < span onClick = { ( ) => setOpenPanel ( ! openPanel ) } class = "panel__dragger" > -</ span >
12
+ < div class = { openPanel ? "panel open" : "panel" } >
13
+ < span onClick = { ( ) => setOpenPanel ( ! openPanel ) } class = "panel__dragger" >
14
+ -
15
+ </ span >
11
16
{ props . children }
12
17
</ div >
13
- )
14
- }
18
+ ) ;
19
+ }
You can’t perform that action at this time.
0 commit comments