diff --git a/package.json b/package.json index 8a0765d2..c32deb95 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ui", - "version": "0.28.0", + "version": "0.28.1", "private": true, "scripts": { "dev": "react-scripts start", diff --git a/src/components/BarcodeFinder/BarcodeFinder.tsx b/src/components/BarcodeFinder/BarcodeFinder.tsx new file mode 100644 index 00000000..1a42b729 --- /dev/null +++ b/src/components/BarcodeFinder/BarcodeFinder.tsx @@ -0,0 +1,17 @@ +import { ReactElement, useState } from "react"; +import { PiMagnifyingGlassBold } from "react-icons/pi"; +import InputText from "../InputText/InputText"; + +export default function BarcodeFinder(): ReactElement { + const [isActiveFinder, setIsActiveFinder] = useState(false); + + return ( +
+ setIsActiveFinder(!isActiveFinder)} + /> + {isActiveFinder && } +
+ ); +} diff --git a/src/components/BarcodeModeToggle/BarcodeModeToggle.tsx b/src/components/BarcodeModeToggle/BarcodeModeToggle.tsx index 12945fe4..97a15bcf 100644 --- a/src/components/BarcodeModeToggle/BarcodeModeToggle.tsx +++ b/src/components/BarcodeModeToggle/BarcodeModeToggle.tsx @@ -2,6 +2,7 @@ import React, { ReactElement } from "react"; import { BsFullscreen } from "react-icons/bs"; import useBarcode from "../../hooks/useBarcode"; import saveAs from "file-saver"; +import BarcodeFinder from "../BarcodeFinder/BarcodeFinder"; interface IBarcodeModeToggle { handleFullScreen: any; @@ -24,25 +25,28 @@ export default function BarcodeModeToggle({ } return ( -
+
setActiveTab(activeTab === "2D" ? "3D" : "2D")} > {activeTab === "2D" ? "3D" : "2D"}
- export + E +
+
+
);