From 714848265aabd487c84845d18e3d816aae4331c3 Mon Sep 17 00:00:00 2001 From: ynwd <10122431+ynwd@users.noreply.github.com> Date: Wed, 4 Dec 2024 07:10:44 +0700 Subject: [PATCH] chore: add arrow down icon --- components/icons/arrow-down.tsx | 21 +++++++++++++++++++++ modules/index/index.navigation.tsx | 19 ++----------------- modules/index/index.room.tsx | 28 ++++++++++++++++------------ 3 files changed, 39 insertions(+), 29 deletions(-) create mode 100644 components/icons/arrow-down.tsx diff --git a/components/icons/arrow-down.tsx b/components/icons/arrow-down.tsx new file mode 100644 index 00000000..52fa9bd8 --- /dev/null +++ b/components/icons/arrow-down.tsx @@ -0,0 +1,21 @@ +export default function ArrowDownSvg() { + return ( + + ); +} diff --git a/modules/index/index.navigation.tsx b/modules/index/index.navigation.tsx index 235ca62b..a0714f96 100644 --- a/modules/index/index.navigation.tsx +++ b/modules/index/index.navigation.tsx @@ -3,6 +3,7 @@ import { effect } from "@preact/signals"; import { AppContext } from "@app/modules/index/index.context.ts"; import { useContext, useEffect, useState } from "preact/hooks"; +import ArrowDownSvg from "@app/components/icons/arrow-down.tsx"; // import useWebSocket from "@app/modules/hook/socket.ts"; @@ -218,23 +219,7 @@ function Item(props: { data: any }) {