Skip to content

Commit

Permalink
fix: style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sgq995 committed Sep 8, 2023
1 parent ea665f9 commit 17e72a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/FloatingActionButton.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { JSX, ParentComponent, children } from "solid-js";
import { type JSX, type ParentComponent, children } from "solid-js";

export type FloatingActionButtonProps =
JSX.ButtonHTMLAttributes<HTMLButtonElement> & {
Expand Down
5 changes: 2 additions & 3 deletions src/components/navigation/Aside.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ function clickOutside(el: HTMLElement, value: Accessor<Signal<boolean>>) {
const [visible, setVisible] = value();

const onClick = (event: MouseEvent) => {
console.log("directive click", visible());
if (visible() && !el.contains(event.target as Node | null)) {
event.stopPropagation();
event.stopImmediatePropagation();
Expand Down Expand Up @@ -96,7 +95,7 @@ const Aside: ParentComponent<AsideProps> = (props) => {
role="presentation"
tabIndex={-1}
>
<TbMenu />
<TbMenu class="block" />
</FloatingActionButton>
</Show>
<Show when={visible()}>
Expand All @@ -105,7 +104,7 @@ const Aside: ParentComponent<AsideProps> = (props) => {
role="presentation"
tabIndex={-1}
>
<TbX />
<TbX class="block" />
</FloatingActionButton>
</Show>
</Show>
Expand Down

0 comments on commit 17e72a9

Please sign in to comment.