Skip to content
This repository was archived by the owner on Aug 4, 2023. It is now read-only.

Commit e558e74

Browse files
committed
style fix
1 parent e2d63bd commit e558e74

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

‎src/shared/Dropdown.tsx‎

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
import { Component, JSX, Show, createSignal } from "solid-js";
22

3+
import { ChevronDown } from "lucide-solid";
34
import Button from "./Button";
45

5-
import { ChevronDown } from "lucide-solid";
66

7-
const Dropdown: Component<{ children: JSX.Element, label: string }> = (props) => {
7+
const Dropdown: Component<{ children: JSX.Element; label: string }> = (
8+
props
9+
) => {
810
const [open, setOpen] = createSignal(false);
911

10-
return(
12+
return (
1113
<div class="inline-block">
12-
<Button onClick={() => {setOpen(!open())}}>
14+
<Button
15+
onClick={() => {
16+
setOpen(!open());
17+
}}
18+
>
1319
<ChevronDown />
1420
{props.label}
1521
</Button>
@@ -18,4 +24,4 @@ const Dropdown: Component<{ children: JSX.Element, label: string }> = (props) =>
1824
);
1925
};
2026

21-
export default Dropdown;
27+
export default Dropdown;

0 commit comments

Comments
 (0)