From f220208f34aee09f7604df0671ddc0c57f633cfd Mon Sep 17 00:00:00 2001 From: Bartosz Dokurno Date: Mon, 3 Jun 2024 12:36:24 +0200 Subject: [PATCH] Organize imports --- .../Organization/OrganizationDangerZone.tsx | 2 +- .../ConfirmMemberDeleteModal.tsx | 2 +- .../ConfirmTransferModal.tsx | 14 ++++---------- .../OrganizationMemberDropdown.tsx | 3 +-- .../TransferOwnershipOption.tsx | 4 +--- 5 files changed, 8 insertions(+), 17 deletions(-) diff --git a/apps/client/src/components/Organization/OrganizationDangerZone.tsx b/apps/client/src/components/Organization/OrganizationDangerZone.tsx index 21abea9..ba844e5 100644 --- a/apps/client/src/components/Organization/OrganizationDangerZone.tsx +++ b/apps/client/src/components/Organization/OrganizationDangerZone.tsx @@ -1,7 +1,7 @@ import { OrganizationDto } from 'shared-types'; +import useUserRole from '../../hooks/useUserRole'; import OrganizationDeleteButton from './OrganizationDeleteButton'; import OrganizationLeaveButton from './OrganizationLeaveButton'; -import useUserRole from '../../hooks/useUserRole'; export interface OrganizationDangerZoneProps { organization: OrganizationDto; diff --git a/apps/client/src/components/Organization/OrganizationMemberDropdown/ConfirmMemberDeleteModal.tsx b/apps/client/src/components/Organization/OrganizationMemberDropdown/ConfirmMemberDeleteModal.tsx index 3f3b6a4..78682a6 100644 --- a/apps/client/src/components/Organization/OrganizationMemberDropdown/ConfirmMemberDeleteModal.tsx +++ b/apps/client/src/components/Organization/OrganizationMemberDropdown/ConfirmMemberDeleteModal.tsx @@ -1,5 +1,6 @@ import axios from 'axios'; import { useState } from 'react'; +import toast from 'react-hot-toast'; import { useQueryClient } from 'react-query'; import { IDeleteSecurityRuleDto, OrganizationDto, SecurityRuleDto } from 'shared-types'; import useUserData from '../../../hooks/useUserData'; @@ -12,7 +13,6 @@ import ModalDialog, { ModalDialogProps } from '../../Modal/ModalDialog'; import ModalHeader from '../../Modal/ModalHeader'; import ModalTitle from '../../Modal/ModalTitle'; import ModelFooter from '../../Modal/ModelFooter'; -import toast from 'react-hot-toast'; export interface ConfirmMemberDeleteModalProps extends ModalDialogProps { organization: OrganizationDto; diff --git a/apps/client/src/components/Organization/OrganizationMemberDropdown/ConfirmTransferModal.tsx b/apps/client/src/components/Organization/OrganizationMemberDropdown/ConfirmTransferModal.tsx index 6bf82d9..7e5d103 100644 --- a/apps/client/src/components/Organization/OrganizationMemberDropdown/ConfirmTransferModal.tsx +++ b/apps/client/src/components/Organization/OrganizationMemberDropdown/ConfirmTransferModal.tsx @@ -1,25 +1,19 @@ import axios from 'axios'; import { useState } from 'react'; +import toast from 'react-hot-toast'; +import { BsArrowRight } from 'react-icons/bs'; import { useQueryClient } from 'react-query'; -import { - IDeleteSecurityRuleDto, - ITransferOrganizationDto, - OrganizationDto, - SecurityRuleDto, -} from 'shared-types'; +import { ITransferOrganizationDto, OrganizationDto, SecurityRuleDto } from 'shared-types'; import useUserData from '../../../hooks/useUserData'; import { Utils } from '../../../utils/utils'; -import Button from '../../Button'; import Alert from '../../Helpers/Alert'; +import IconButton from '../../IconButton'; import ModalBody from '../../Modal/ModalBody'; import ModalCloseButton from '../../Modal/ModalCloseButton'; import ModalDialog, { ModalDialogProps } from '../../Modal/ModalDialog'; import ModalHeader from '../../Modal/ModalHeader'; import ModalTitle from '../../Modal/ModalTitle'; import ModelFooter from '../../Modal/ModelFooter'; -import { BsArrowRight } from 'react-icons/bs'; -import IconButton from '../../IconButton'; -import toast from 'react-hot-toast'; export interface ConfirmTransferModalProps extends ModalDialogProps { organization: OrganizationDto; diff --git a/apps/client/src/components/Organization/OrganizationMemberDropdown/OrganizationMemberDropdown.tsx b/apps/client/src/components/Organization/OrganizationMemberDropdown/OrganizationMemberDropdown.tsx index f549c7d..1da3628 100644 --- a/apps/client/src/components/Organization/OrganizationMemberDropdown/OrganizationMemberDropdown.tsx +++ b/apps/client/src/components/Organization/OrganizationMemberDropdown/OrganizationMemberDropdown.tsx @@ -1,8 +1,7 @@ -import { BsArrowRight, BsThreeDotsVertical } from 'react-icons/bs'; +import { BsThreeDotsVertical } from 'react-icons/bs'; import { OrganizationDto, SecurityRuleDto } from 'shared-types'; import ActionButton from '../../ActionButton'; import Dropdown from '../../Dropdown/Dropdown'; -import DropdownItem from '../../Dropdown/DropdownItem'; import DropdownMenu from '../../Dropdown/DropdownMenu'; import DropdownToggle from '../../Dropdown/DropdownToggle'; import RemoveMemberOption from './RemoveMemberOption'; diff --git a/apps/client/src/components/Organization/OrganizationMemberDropdown/TransferOwnershipOption.tsx b/apps/client/src/components/Organization/OrganizationMemberDropdown/TransferOwnershipOption.tsx index d6a1013..12160e7 100644 --- a/apps/client/src/components/Organization/OrganizationMemberDropdown/TransferOwnershipOption.tsx +++ b/apps/client/src/components/Organization/OrganizationMemberDropdown/TransferOwnershipOption.tsx @@ -1,12 +1,10 @@ import { useState } from 'react'; import { createPortal } from 'react-dom'; -import { BsArrowRight, BsPersonXFill } from 'react-icons/bs'; +import { BsArrowRight } from 'react-icons/bs'; import { OrganizationDto, OrganizationSecurityRole, SecurityRuleDto } from 'shared-types'; import useUserRole from '../../../hooks/useUserRole'; -import { SecurityUtils } from '../../../utils/securityUtils'; import { ActionButtonProps } from '../../ActionButton'; import DropdownItem from '../../Dropdown/DropdownItem'; -import ConfirmMemberDeleteModal from './ConfirmMemberDeleteModal'; import ConfirmTransferModal from './ConfirmTransferModal'; export interface TransferOwnershipOptionProps extends Omit {