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

Commit

Permalink
style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ewof committed Feb 18, 2023
1 parent e2d63bd commit e558e74
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/shared/Dropdown.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
import { Component, JSX, Show, createSignal } from "solid-js";

import { ChevronDown } from "lucide-solid";
import Button from "./Button";

import { ChevronDown } from "lucide-solid";

const Dropdown: Component<{ children: JSX.Element, label: string }> = (props) => {
const Dropdown: Component<{ children: JSX.Element; label: string }> = (
props
) => {
const [open, setOpen] = createSignal(false);

return(
return (
<div class="inline-block">
<Button onClick={() => {setOpen(!open())}}>
<Button
onClick={() => {
setOpen(!open());
}}
>
<ChevronDown />
{props.label}
</Button>
Expand All @@ -18,4 +24,4 @@ const Dropdown: Component<{ children: JSX.Element, label: string }> = (props) =>
);
};

export default Dropdown;
export default Dropdown;

0 comments on commit e558e74

Please sign in to comment.