From 3b1314d451e93b04e1ee99aede0cc9169a289ca6 Mon Sep 17 00:00:00 2001 From: gokhangunduz Date: Fri, 22 Sep 2023 16:47:39 +0300 Subject: [PATCH] feat(prettier.config.js) :tada: add prettier-config, add prettier-tailwind plugin and update components for prettier --- .../CreateForms/CreateEnvironmentFormStep1.tsx | 12 ++++++------ .../CreateForms/CreateOrganizationForm.tsx | 10 +++++----- .../MainDashboardPage/MainDashboardPage.tsx | 8 ++++---- .../OrganizationDashboardPage.tsx | 10 +++++----- src/pages/RobotPage/Overview/Overview.tsx | 4 ++-- 5 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/components/CreateForms/CreateEnvironmentFormStep1.tsx b/src/components/CreateForms/CreateEnvironmentFormStep1.tsx index 66a0e276..44f67c91 100644 --- a/src/components/CreateForms/CreateEnvironmentFormStep1.tsx +++ b/src/components/CreateForms/CreateEnvironmentFormStep1.tsx @@ -1,28 +1,28 @@ import React, { Fragment, ReactElement, useEffect, useState } from "react"; import CreateRobotFormVDISessionCount from "../CreateRobotFormVDISessionCount/CreateRobotFormVDISessionCount"; -import CreateRobotFormGpuResource from "../CreateRobotFormGpuResource/CreateRobotFormGpuResource"; import CreateRobotFormCancelButton from "../CreateRobotFormCancelButton/CreateRobotFormCancelButton"; import { CreateEnvironmentsFormStep1Validations } from "../../validations/EnvironmentsValidations"; +import CreateRobotFormGpuResource from "../CreateRobotFormGpuResource/CreateRobotFormGpuResource"; import CreateRobotFormLoader from "../CreateRobotFormLoader/CreateRobotFormLoader"; import EnvironmentSelector from "../EnvironmentSelector/EnvironmentSelector"; import CreateRobotStorage from "../CreateRobotStorage/CreateRobotStorage"; +import { createEnvironment } from "../../toolkit/EnvironmentSlice"; +import { getGuideItem } from "../../functions/handleGuide"; import useCreateRobot from "../../hooks/useCreateRobot"; import { createRobot } from "../../toolkit/RobotSlice"; +import InputToggle from "../InputToggle/InputToggle"; import useFunctions from "../../hooks/useFunctions"; import { useAppDispatch } from "../../hooks/redux"; import InputError from "../InputError/InputError"; -import InputText from "../InputText/InputText"; import Seperator from "../Seperator/Seperator"; +import TourGuide from "../TourGuide/TourGuide"; +import InputText from "../InputText/InputText"; import { useParams } from "react-router-dom"; import useMain from "../../hooks/useMain"; import InfoTip from "../InfoTip/InfoTip"; import Button from "../Button/Button"; import { useFormik } from "formik"; import { toast } from "sonner"; -import { getGuideItem } from "../../functions/handleGuide"; -import TourGuide from "../TourGuide/TourGuide"; -import { createEnvironment } from "../../toolkit/EnvironmentSlice"; -import InputToggle from "../InputToggle/InputToggle"; interface ICreateEnvironmentFormStep1 { isImportRobot?: boolean; diff --git a/src/components/CreateForms/CreateOrganizationForm.tsx b/src/components/CreateForms/CreateOrganizationForm.tsx index 21e064fc..6da06403 100644 --- a/src/components/CreateForms/CreateOrganizationForm.tsx +++ b/src/components/CreateForms/CreateOrganizationForm.tsx @@ -1,14 +1,14 @@ import { useFormik } from "formik"; -import React, { ReactElement } from "react"; import { createOrganizationSchema } from "../../validations/OrganizationsValidations"; +import CreateFormCancelButton from "../CreateFormCancelButton/CreateFormCancelButton"; +import { createOrganization } from "../../toolkit/OrganizationSlice"; +import { useAppDispatch } from "../../hooks/redux"; import InputError from "../InputError/InputError"; import InputText from "../InputText/InputText"; -import Button from "../Button/Button"; -import { useAppDispatch } from "../../hooks/redux"; -import { createOrganization } from "../../toolkit/OrganizationSlice"; +import React, { ReactElement } from "react"; import useMain from "../../hooks/useMain"; import InfoTip from "../InfoTip/InfoTip"; -import CreateFormCancelButton from "../CreateFormCancelButton/CreateFormCancelButton"; +import Button from "../Button/Button"; export default function CreateOrganizationForm(): ReactElement { const { sidebarState, setSidebarState }: any = useMain(); diff --git a/src/pages/DashboardsPage/MainDashboardPage/MainDashboardPage.tsx b/src/pages/DashboardsPage/MainDashboardPage/MainDashboardPage.tsx index 2017d2a2..6e1857ed 100644 --- a/src/pages/DashboardsPage/MainDashboardPage/MainDashboardPage.tsx +++ b/src/pages/DashboardsPage/MainDashboardPage/MainDashboardPage.tsx @@ -8,15 +8,15 @@ import React, { import OrganizationActionCells from "../../../components/TableActionCells/OrganizationActionCells"; import InformationWidget from "../../../components/InformationWidget/InformationWidget"; import { organizationNameViewer } from "../../../functions/GeneralFunctions"; +import StateCell from "../../../components/TableInformationCells/StateCell"; +import InfoCell from "../../../components/TableInformationCells/InfoCell"; import CountWidget from "../../../components/CountWidget/CountWidget"; import GeneralTable from "../../../components/Table/GeneralTable"; +import TourGuide from "../../../components/TourGuide/TourGuide"; import DashboardLayout from "../../../layouts/DashboardLayout"; -import StateCell from "../../../components/TableInformationCells/StateCell"; -import InfoCell from "../../../components/TableInformationCells/InfoCell"; +import { getGuideItem } from "../../../functions/handleGuide"; import useFunctions from "../../../hooks/useFunctions"; import { useParams } from "react-router-dom"; -import TourGuide from "../../../components/TourGuide/TourGuide"; -import { getGuideItem } from "../../../functions/handleGuide"; export default function MainDashboardPage(): ReactElement { const [responseOrganizations, setResponseOrganizations] = useState< diff --git a/src/pages/DashboardsPage/OrganizationDashboardPage/OrganizationDashboardPage.tsx b/src/pages/DashboardsPage/OrganizationDashboardPage/OrganizationDashboardPage.tsx index ee3ce56b..cfdeae7e 100644 --- a/src/pages/DashboardsPage/OrganizationDashboardPage/OrganizationDashboardPage.tsx +++ b/src/pages/DashboardsPage/OrganizationDashboardPage/OrganizationDashboardPage.tsx @@ -2,18 +2,18 @@ import React, { ReactElement, useEffect, useMemo, useState } from "react"; import RoboticsCloudActionCells from "../../../components/TableActionCells/RoboticsCloudActionCells"; import InformationWidget from "../../../components/InformationWidget/InformationWidget"; import RegionsWidget from "../../../components/RegionsWidget/RegionsWidget"; +import StateCell from "../../../components/TableInformationCells/StateCell"; +import BasicCell from "../../../components/TableInformationCells/BasicCell"; import { stringCapitalization } from "../../../functions/GeneralFunctions"; +import InfoCell from "../../../components/TableInformationCells/InfoCell"; import CountWidget from "../../../components/CountWidget/CountWidget"; import GeneralTable from "../../../components/Table/GeneralTable"; +import TourGuide from "../../../components/TourGuide/TourGuide"; import DashboardLayout from "../../../layouts/DashboardLayout"; -import StateCell from "../../../components/TableInformationCells/StateCell"; -import BasicCell from "../../../components/TableInformationCells/BasicCell"; -import InfoCell from "../../../components/TableInformationCells/InfoCell"; +import { getGuideItem } from "../../../functions/handleGuide"; import useFunctions from "../../../hooks/useFunctions"; import { useParams } from "react-router-dom"; import useMain from "../../../hooks/useMain"; -import TourGuide from "../../../components/TourGuide/TourGuide"; -import { getGuideItem } from "../../../functions/handleGuide"; export default function OrganizationDashboardPage(): ReactElement { const [reload, setReload] = useState(false); diff --git a/src/pages/RobotPage/Overview/Overview.tsx b/src/pages/RobotPage/Overview/Overview.tsx index 3a717abf..be3bd2eb 100644 --- a/src/pages/RobotPage/Overview/Overview.tsx +++ b/src/pages/RobotPage/Overview/Overview.tsx @@ -11,10 +11,10 @@ import RobotStatusWidget from "../../../components/RobotStatusWidget/RobotStatus import InformationWidget from "../../../components/InformationWidget/InformationWidget"; import ActivitiesWidget from "../../../components/ActivitiesWidget/ActivitiesWidget"; import RobotOverviewLayout from "../../../layouts/RobotOverviewLayout"; -import useRobot from "../../../hooks/useRobot"; -import { useParams } from "react-router-dom"; import TourGuide from "../../../components/TourGuide/TourGuide"; import { getGuideItem } from "../../../functions/handleGuide"; +import useRobot from "../../../hooks/useRobot"; +import { useParams } from "react-router-dom"; interface IOverview { informationWidgetAction: () => void;