((set) => ({
const tasks = [...state.tasks];
if (status === "error" || isEmpty(name)) {
const lastTaskIndex = tasks.length - 1;
- const newContent = isEmpty(content)
- ? tasks[lastTaskIndex].content
- : tasks[lastTaskIndex].content + ` : ${content}`;
if (lastTaskIndex >= 0) {
tasks[lastTaskIndex] = {
...tasks[lastTaskIndex],
status,
- content: newContent,
};
}
} else {
diff --git a/src/components/common/icons.tsx b/src/components/common/icons.tsx
index 372b518b..43819269 100644
--- a/src/components/common/icons.tsx
+++ b/src/components/common/icons.tsx
@@ -1,10 +1,5 @@
-/* eslint-disable @typescript-eslint/no-unused-vars */
import {
- ArrowRight,
- CircuitBoard,
Globe,
- House,
- ImagePlus,
LayoutGrid,
LucideIcon,
LucideProps,
@@ -20,13 +15,12 @@ import { IconType } from "react-icons";
import { FaYoutube } from "react-icons/fa";
import { TiHome } from "react-icons/ti";
import { FaToolbox } from "react-icons/fa6";
-import { SiCoinmarketcap } from "react-icons/si";
export type Icon = LucideIcon | IconType;
export const Icons = {
arrowRight: ({ ...props }: LucideProps) => {
return (
-