Icon offline, svg in public und ein icon component erstellt

This commit is contained in:
Ismail Ali
2025-04-06 00:16:03 +02:00
parent 3965f83f4c
commit 8e48800d81
3 changed files with 20 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
import React from "react";
type Props = {
className?: string;
onClick?: () => void;
};
export default function CogIcon({ className, onClick }: Props) {
return (
<img
src="/icons/mdi--cog-outline.svg"
alt="Einstellungen"
className={className}
onClick={onClick}
/>
);
}

View File

@@ -3,6 +3,7 @@ import React from "react";
import { Icon } from "@iconify/react";
import { useSelector } from "react-redux";
import { RootState } from "../../../redux/store";
import CogIcon from "../../../components/icons/CogIcon";
type Props = {
openInputModal: (input: any) => void;
@@ -51,8 +52,7 @@ export default function DigitalInputs({ openInputModal, inputRange }: Props) {
<td className="px-1 py-1">{input.label}</td>
<td className="px-1 py-1">
<Icon
icon="mdi:cog"
<CogIcon
className="text-gray-400 text-base cursor-pointer"
onClick={() => openInputModal(input)}
/>