Refined UI,code logic for improved user experience

This commit is contained in:
2023-06-23 20:07:43 +08:00
parent 8420085fb1
commit 6711506acd
16 changed files with 170 additions and 320 deletions
+11
View File
@@ -1,4 +1,6 @@
import DeleteIcon from "../icons/delete.svg";
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faPen } from '@fortawesome/free-solid-svg-icons'
import BotIcon from "../icons/bot.svg";
import styles from "./home.module.scss";
@@ -20,6 +22,7 @@ import { useRef, useEffect } from "react";
export function ChatItem(props: {
onClick?: () => void;
onRename?: () => void;
onDelete?: () => void;
title: string;
count: number;
@@ -77,6 +80,14 @@ export function ChatItem(props: {
</>
)}
<div
className={styles["chat-item-rename"]}
onClickCapture={props.onRename}
>
{/* <RenameIcon /> */}
<FontAwesomeIcon icon={faPen} />
</div>
<div
className={styles["chat-item-delete"]}
onClickCapture={props.onDelete}