Skip to content

Commit

Permalink
refactor(create-robot-form-step1): 🐛 remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
gokhangunduz committed Aug 29, 2023
1 parent 41a2de2 commit 54938b0
Show file tree
Hide file tree
Showing 16 changed files with 46 additions and 55 deletions.
8 changes: 4 additions & 4 deletions src/components/CreateRobotTypes/CreateRobotTypes.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React, { Fragment, ReactElement, useEffect, useState } from "react";
import InfoTip from "../InfoTip/InfoTip";
import { toast } from "sonner";
import InputError from "../InputError/InputError";
import { getPhysicalInstances } from "../../toolkit/InstanceSlice";
import SidebarInfo from "../SidebarInfo/SidebarInfo";
import { useAppDispatch } from "../../hooks/redux";
import InputError from "../InputError/InputError";
import useMain from "../../hooks/useMain";
import { getPhysicalInstances } from "../../toolkit/InstanceSlice";
import InfoTip from "../InfoTip/InfoTip";
import { toast } from "sonner";

interface ICreateRobotTypes {
formik: any;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React, { ReactElement, useState } from "react";
import Accordion from "../Accordion/AccordionV2";
import Button from "../Button/Button";
import { BsPlusCircle } from "react-icons/bs";
import InputText from "../InputText/InputText";
import CreateRobotFormBuildStepItem from "../CreateRobotFormBuildStepItem/CreateRobotFormBuildStepItem";
import { IRobotBuildSteps } from "../../interfaces/robotInterfaces";
import InputError from "../InputError/InputError";
import Accordion from "../Accordion/AccordionV2";
import { FormikProps, useFormik } from "formik";
import { IRobotBuildSteps } from "../../interfaces/robotInterfaces";
import InputText from "../InputText/InputText";
import { BsPlusCircle } from "react-icons/bs";
import InfoTip from "../InfoTip/InfoTip";
import CreateRobotFormBuildStepItem from "../CreateRobotFormBuildStepItem/CreateRobotFormBuildStepItem";
import Button from "../Button/Button";

interface ISidebarBuildManagerListItem {
buildManagerIndex: number;
Expand Down
4 changes: 2 additions & 2 deletions src/components/SidebarContentHeader/SidebarContentHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React, { Fragment, ReactElement } from "react";
import useMain from "../../hooks/useMain";
import { useParams } from "react-router-dom";
import { stringCapitalization } from "../../functions/GeneralFunctions";
import { envOnPremiseRobot } from "../../helpers/envProvider";
import { useParams } from "react-router-dom";
import useMain from "../../hooks/useMain";

interface ISidebarContentHeader {
itemCount?: number;
Expand Down
4 changes: 2 additions & 2 deletions src/components/SidebarLists/EnvironmentsList.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React, { Fragment, ReactElement, useEffect, useState } from "react";
import SidebarListLoader from "../SidebarListLoader/SidebarListLoader";
import StateCell from "../TableInformationCells/StateCell";
import SidebarInfo from "../SidebarInfo/SidebarInfo";
import useFunctions from "../../hooks/useFunctions";
import SidebarListItem from "./SidebarListItem";
import useMain from "../../hooks/useMain";
import StateCell from "../TableInformationCells/StateCell";
import SidebarListLoader from "../SidebarListLoader/SidebarListLoader";

interface IEnvironmentsList {
reload: boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/components/SidebarLists/NamespacesList.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React, { Fragment, ReactElement, useEffect, useState } from "react";
import SidebarListLoader from "../SidebarListLoader/SidebarListLoader";
import StateCell from "../TableInformationCells/StateCell";
import SidebarInfo from "../SidebarInfo/SidebarInfo";
import useFunctions from "../../hooks/useFunctions";
import { useAppDispatch } from "../../hooks/redux";
import SidebarListItem from "./SidebarListItem";
import StateCell from "../TableInformationCells/StateCell";
import useMain from "../../hooks/useMain";

interface INamespacesList {
Expand Down
2 changes: 1 addition & 1 deletion src/components/SidebarLists/OrganizationsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import React, { Fragment, ReactElement, useEffect, useState } from "react";
import { organizationNameViewer } from "../../functions/GeneralFunctions";
import { IOrganization } from "../../interfaces/organizationInterfaces";
import SidebarListLoader from "../SidebarListLoader/SidebarListLoader";
import StateCell from "../TableInformationCells/StateCell";
import SidebarSelectInfo from "../SidebarInfo/SidebarInfo";
import useFunctions from "../../hooks/useFunctions";
import SidebarListItem from "./SidebarListItem";
import StateCell from "../TableInformationCells/StateCell";
import useMain from "../../hooks/useMain";

interface IOrganizationList {
Expand Down
12 changes: 6 additions & 6 deletions src/components/SidebarLists/PhysicalInstancesList.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React, { Fragment, ReactElement, useEffect, useState } from "react";
import { organizationNameViewer } from "../../functions/GeneralFunctions";
import SidebarInstancesTabs from "../SidebarInstancesTabs/SidebarInstancesTabs";
import { organizationNameViewer } from "../../functions/GeneralFunctions";
import SidebarListLoader from "../SidebarListLoader/SidebarListLoader";
import StateCell from "../TableInformationCells/StateCell";
import SidebarInfo from "../SidebarInfo/SidebarInfo";
import useFunctions from "../../hooks/useFunctions";
import SidebarListItem from "./SidebarListItem";
import useMain from "../../hooks/useMain";
import StateCell from "../TableInformationCells/StateCell";
import SidebarListLoader from "../SidebarListLoader/SidebarListLoader";

interface IPhysicalInstancesList {
reload: boolean;
Expand Down Expand Up @@ -58,8 +58,8 @@ export default function PhysicalInstancesList({
function handleGetPhysicalInstances() {
getPhysicalInstances(
{
organizationId: selectedState?.organization?.organizationId,
roboticsCloudName: selectedState?.roboticsCloud?.name,
organizationId: selectedState?.organization?.organizationId!,
roboticsCloudName: selectedState?.roboticsCloud?.name!,
instanceId: selectedState?.instance?.instanceId,
region: selectedState?.instance?.region,
},
Expand Down Expand Up @@ -106,7 +106,7 @@ export default function PhysicalInstancesList({
}
url={`/${organizationNameViewer({
organizationName:
selectedState?.organization?.organizationName,
selectedState?.organization?.organizationName!,
capitalization: false,
})}/${selectedState?.roboticsCloud?.name}/${
instance?.name
Expand Down
8 changes: 4 additions & 4 deletions src/components/SidebarLists/RoboticsCloudsList.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React, { Fragment, ReactElement, useEffect, useState } from "react";
import { organizationNameViewer } from "../../functions/GeneralFunctions";
import SidebarListLoader from "../SidebarListLoader/SidebarListLoader";
import SidebarSelectInfo from "../SidebarInfo/SidebarInfo";
import SidebarListItem from "./SidebarListItem";
import useMain from "../../hooks/useMain";
import StateCell from "../TableInformationCells/StateCell";
import useFunctions from "../../hooks/useFunctions";
import BasicCell from "../TableInformationCells/BasicCell";
import SidebarListLoader from "../SidebarListLoader/SidebarListLoader";
import useFunctions from "../../hooks/useFunctions";
import SidebarListItem from "./SidebarListItem";
import useMain from "../../hooks/useMain";

interface IRoboticsCloudsList {
reload: boolean;
Expand Down
6 changes: 3 additions & 3 deletions src/components/SidebarLists/RobotsList.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React, { Fragment, ReactElement, useEffect, useState } from "react";
import SidebarListLoader from "../SidebarListLoader/SidebarListLoader";
import { envOnPremiseRobot } from "../../helpers/envProvider";
import StateCell from "../TableInformationCells/StateCell";
import SidebarInfo from "../SidebarInfo/SidebarInfo";
import useFunctions from "../../hooks/useFunctions";
import SidebarListItem from "./SidebarListItem";
import useMain from "../../hooks/useMain";
import StateCell from "../TableInformationCells/StateCell";
import SidebarListLoader from "../SidebarListLoader/SidebarListLoader";
import { envOnPremiseRobot } from "../../helpers/envProvider";

interface IRobotsList {
reload: boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/components/SidebarLists/SidebarListItem.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React, { ReactElement } from "react";
import { organizationNameViewer } from "../../functions/GeneralFunctions";
import { envOnPremiseRobot } from "../../helpers/envProvider";
import { useNavigate } from "react-router-dom";
import useMain from "../../hooks/useMain";
import { toast } from "sonner";
import { envOnPremiseRobot } from "../../helpers/envProvider";

interface ISidebarListItem {
name: string;
Expand Down
10 changes: 5 additions & 5 deletions src/components/SidebarLists/WorkspaceList.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React, { Fragment, ReactElement, useEffect, useState } from "react";
import { useAppDispatch } from "../../hooks/redux";
import useMain from "../../hooks/useMain";
import { getRobot } from "../../toolkit/RobotSlice";
import CreateRobotFormStep2 from "../CreateForms/CreateRobotFormStep2";
import useCreateRobot from "../../hooks/useCreateRobot";
import SidebarInfo from "../SidebarInfo/SidebarInfo";
import { getRobot } from "../../toolkit/RobotSlice";
import { useAppDispatch } from "../../hooks/redux";
import { useParams } from "react-router-dom";
import useCreateRobot from "../../hooks/useCreateRobot";
import CreateRobotFormStep2 from "../CreateForms/CreateRobotFormStep2";
import useMain from "../../hooks/useMain";

interface IWorkspaceList {
reload: boolean;
Expand Down
9 changes: 0 additions & 9 deletions src/pages/RobotPage/Workspaces/Workspaces.tsx

This file was deleted.

6 changes: 3 additions & 3 deletions src/pages/UserRoleManagement/OrganizationAdminsPage.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React, { useEffect, useMemo, useState } from "react";
import GeneralTable from "../../components/Table/GeneralTable";
import InfoCell from "../../components/TableInformationCells/InfoCell";
import UserActionCells from "../../components/TableActionCells/UserActionCells";
import BasicCell from "../../components/TableInformationCells/BasicCell";
import { useAppDispatch } from "../../hooks/redux";
import { getOrganizationAdmins } from "../../toolkit/OrganizationSlice";
import InfoCell from "../../components/TableInformationCells/InfoCell";
import GeneralTable from "../../components/Table/GeneralTable";
import { useAppDispatch } from "../../hooks/redux";

interface IOrganizationAdminsPage {
activePage: any;
Expand Down
6 changes: 3 additions & 3 deletions src/pages/UserRoleManagement/OrganizationGuestsPage.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React, { Fragment, useEffect, useMemo, useState } from "react";
import GeneralTable from "../../components/Table/GeneralTable";
import InfoCell from "../../components/TableInformationCells/InfoCell";
import UserActionCells from "../../components/TableActionCells/UserActionCells";
import { useAppDispatch } from "../../hooks/redux";
import { getOrganizationGuests } from "../../toolkit/OrganizationSlice";
import InfoCell from "../../components/TableInformationCells/InfoCell";
import GeneralTable from "../../components/Table/GeneralTable";
import { useAppDispatch } from "../../hooks/redux";

interface IOrganizationGuestsPage {
activePage: any;
Expand Down
6 changes: 3 additions & 3 deletions src/pages/UserRoleManagement/OrganizationUsersPage.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React, { useEffect, useMemo, useState } from "react";
import GeneralTable from "../../components/Table/GeneralTable";
import InfoCell from "../../components/TableInformationCells/InfoCell";
import UserActionCells from "../../components/TableActionCells/UserActionCells";
import BasicCell from "../../components/TableInformationCells/BasicCell";
import { useAppDispatch } from "../../hooks/redux";
import InfoCell from "../../components/TableInformationCells/InfoCell";
import { getOrganizationUsers } from "../../toolkit/OrganizationSlice";
import GeneralTable from "../../components/Table/GeneralTable";
import { useAppDispatch } from "../../hooks/redux";

interface IOrganizationUsersPage {
activePage: any;
Expand Down
4 changes: 2 additions & 2 deletions src/pages/UserRoleManagement/OrganizationsPage.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React, { useMemo } from "react";
import GeneralTable from "../../components/Table/GeneralTable";
import InfoCell from "../../components/TableInformationCells/InfoCell";
import OrganizationActionCells from "../../components/TableActionCells/OrganizationActionCells";
import { organizationNameViewer } from "../../functions/GeneralFunctions";
import BasicCell from "../../components/TableInformationCells/BasicCell";
import InfoCell from "../../components/TableInformationCells/InfoCell";
import GeneralTable from "../../components/Table/GeneralTable";

interface IOrganizationsPage {
responseOrganizations: any;
Expand Down

0 comments on commit 54938b0

Please sign in to comment.