Skip to content

Commit

Permalink
Organize imports
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBartusek committed Jun 3, 2024
1 parent 1ad58a7 commit f220208
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
Original file line number Diff line number Diff line change
@@ -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<ActionButtonProps, 'icon' | 'onClick'> {
Expand Down

0 comments on commit f220208

Please sign in to comment.