Skip to content

Commit

Permalink
Remove unused import modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Jul 14, 2023
1 parent eec73db commit 5e69835
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 14 deletions.
6 changes: 3 additions & 3 deletions src/components/ClassObj.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from "react";
import { useContext } from "react";
import { MainContext } from "../contexts/MainContext";
import React, { useContext } from "react";
import { BsSquareFill } from "react-icons/bs";

import { MainContext } from "../contexts/MainContext";

export const ClassObj = ({ classProps }) => {
const { activeClass, dispatchSetActiveClass } = useContext(MainContext);

Expand Down
2 changes: 1 addition & 1 deletion src/components/Classes.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useContext, useState, useEffect } from "react";

import { MainContext } from "../contexts/MainContext";
import { ClassObj } from "./ClassObj";

import { getClassLayers } from "../utils/convert";
import { MenuTemplate } from "./MenuTemplate";

Expand Down
1 change: 0 additions & 1 deletion src/components/EncodeCanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export const EncodeCanvas = () => {
setSpinnerLoading,
} = useContext(MainContext);

// const { map } = useContext(MapContext);
const [samApiStatus, setSamApiStatus] = useState(null);

const reset = () => {
Expand Down
3 changes: 1 addition & 2 deletions src/components/EncodeExpImp.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ export const EncodeExpImp = () => {

const exportToS3 = async () => {
setSpinnerLoading(true);

const resp = await uploadtoS3(
await uploadtoS3(
activeEncodeImageItem,
`encode_images/${simplyName(activeProject.properties.name)}/${
activeEncodeImageItem.id
Expand Down
6 changes: 3 additions & 3 deletions src/components/EncodeItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const EncodeItem = ({ encodeItem }) => {
};

const handleRemoveEncodeItem = async (encodeItem) => {
if (encodeItem.id == activeEncodeImageItem.id) {
if (encodeItem.id === activeEncodeImageItem.id) {
NotificationManager.warning(
`You can't remove active encode view`,
"",
Expand Down Expand Up @@ -55,8 +55,8 @@ export const EncodeItem = ({ encodeItem }) => {
alt={`Encode Image`}
className={`w-full h-full object-cover opacity-100 transition-opacity duration-500 ease-in-out transform hover:opacity-90 mb-2
${
activeEncodeImageItem && encodeItem.id == activeEncodeImageItem.id
? "border border-blue-500 border-2"
activeEncodeImageItem && encodeItem.id === activeEncodeImageItem.id
? "border border-green-500 border-2"
: "border border-gray-300 border-2"
}`}
style={{
Expand Down
1 change: 0 additions & 1 deletion src/components/Item.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { useContext } from "react";

import { BsTrash } from "react-icons/bs";
import { MainContext } from "./../contexts/MainContext";
import { storeItems } from "./../store/indexedDB";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modal.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useContext } from "react";
import React, { useContext } from "react";
import { MainContext } from "./../contexts/MainContext";
import { BsXLg } from "react-icons/bs";

Expand Down
1 change: 0 additions & 1 deletion src/components/Sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { Projects } from "./Projects";
import { Classes } from "./Classes";
import { Items } from "./Items";
import { MenuExpData } from "./MenuExpData";
import { ItemsDataActions } from "./ItemsDataActions";
import { EncodeItems } from "./EncodeItems";

const MenuSection = ({ children }) => (
Expand Down
2 changes: 1 addition & 1 deletion src/components/map/MagicWand.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useContext, useEffect } from "react";
import { useContext, useEffect } from "react";
import { Feature } from "ol";
import Polygon from "ol/geom/Polygon";

Expand Down

0 comments on commit 5e69835

Please sign in to comment.