Icon offline, svg in public und ein icon component erstellt
This commit is contained in:
17
components/icons/CogIcon.tsx
Normal file
17
components/icons/CogIcon.tsx
Normal 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}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -3,6 +3,7 @@ import React from "react";
|
|||||||
import { Icon } from "@iconify/react";
|
import { Icon } from "@iconify/react";
|
||||||
import { useSelector } from "react-redux";
|
import { useSelector } from "react-redux";
|
||||||
import { RootState } from "../../../redux/store";
|
import { RootState } from "../../../redux/store";
|
||||||
|
import CogIcon from "../../../components/icons/CogIcon";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
openInputModal: (input: any) => void;
|
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">{input.label}</td>
|
||||||
<td className="px-1 py-1">
|
<td className="px-1 py-1">
|
||||||
<Icon
|
<CogIcon
|
||||||
icon="mdi:cog"
|
|
||||||
className="text-gray-400 text-base cursor-pointer"
|
className="text-gray-400 text-base cursor-pointer"
|
||||||
onClick={() => openInputModal(input)}
|
onClick={() => openInputModal(input)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
1
public/icons/mdi--cog-outline.svg
Normal file
1
public/icons/mdi--cog-outline.svg
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M12 8a4 4 0 0 1 4 4a4 4 0 0 1-4 4a4 4 0 0 1-4-4a4 4 0 0 1 4-4m0 2a2 2 0 0 0-2 2a2 2 0 0 0 2 2a2 2 0 0 0 2-2a2 2 0 0 0-2-2m-2 12c-.25 0-.46-.18-.5-.42l-.37-2.65c-.63-.25-1.17-.59-1.69-.99l-2.49 1.01c-.22.08-.49 0-.61-.22l-2-3.46a.493.493 0 0 1 .12-.64l2.11-1.66L4.5 12l.07-1l-2.11-1.63a.493.493 0 0 1-.12-.64l2-3.46c.12-.22.39-.31.61-.22l2.49 1c.52-.39 1.06-.73 1.69-.98l.37-2.65c.04-.24.25-.42.5-.42h4c.25 0 .46.18.5.42l.37 2.65c.63.25 1.17.59 1.69.98l2.49-1c.22-.09.49 0 .61.22l2 3.46c.13.22.07.49-.12.64L19.43 11l.07 1l-.07 1l2.11 1.63c.19.15.25.42.12.64l-2 3.46c-.12.22-.39.31-.61.22l-2.49-1c-.52.39-1.06.73-1.69.98l-.37 2.65c-.04.24-.25.42-.5.42zm1.25-18l-.37 2.61c-1.2.25-2.26.89-3.03 1.78L5.44 7.35l-.75 1.3L6.8 10.2a5.55 5.55 0 0 0 0 3.6l-2.12 1.56l.75 1.3l2.43-1.04c.77.88 1.82 1.52 3.01 1.76l.37 2.62h1.52l.37-2.61c1.19-.25 2.24-.89 3.01-1.77l2.43 1.04l.75-1.3l-2.12-1.55c.4-1.17.4-2.44 0-3.61l2.11-1.55l-.75-1.3l-2.41 1.04a5.42 5.42 0 0 0-3.03-1.77L12.75 4z"/></svg>
|
||||||
|
After Width: | Height: | Size: 1.1 KiB |
Reference in New Issue
Block a user