Skip to content

Commit ff63d58

Browse files
committed
Lint
1 parent 74c3fc8 commit ff63d58

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

web-vite/src/app/panel.tsx

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
1-
import { useState } from 'preact/hooks';
1+
import { useState } from "preact/hooks";
22

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 */
36
interface PanelProps {
47
children: any;
58
}
6-
export function Panel(props: PanelProps){
7-
const [openPanel, setOpenPanel] = useState(false)
9+
export function Panel(props: PanelProps) {
10+
const [openPanel, setOpenPanel] = useState(false);
811
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>
1116
{props.children}
1217
</div>
13-
)
14-
}
18+
);
19+
}

0 commit comments

Comments
 (0)