refactor: update code to use centralized Ant Design imports
- Replaced direct import of '@ant-design/icons' with centralized import from '@/shared/antd-imports'
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import React, { useState, useRef, useEffect, useMemo, useCallback } from 'react';
|
||||
import { createPortal } from 'react-dom';
|
||||
import { useSelector } from 'react-redux';
|
||||
import { PlusOutlined, UserAddOutlined } from '@ant-design/icons';
|
||||
import { PlusOutlined, UserAddOutlined } from '@/shared/antd-imports';
|
||||
import { RootState } from '@/app/store';
|
||||
import { IProjectTask } from '@/types/project/projectTasksViewModel.types';
|
||||
import { ITeamMembersViewModel } from '@/types/teamMembers/teamMembersViewModel.types';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { SearchOutlined } from '@ant-design/icons';
|
||||
import { SearchOutlined } from '@/shared/antd-imports';
|
||||
import { Input } from '@/shared/antd-imports';
|
||||
|
||||
type CustomSearchbarProps = {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Flex, Tooltip, Typography } from '@/shared/antd-imports';
|
||||
import { colors } from '../styles/colors';
|
||||
import { ExclamationCircleOutlined } from '@ant-design/icons';
|
||||
import { ExclamationCircleOutlined } from '@/shared/antd-imports';
|
||||
|
||||
// this custom table title used when the typography font weigh 500 needed
|
||||
const CustomTableTitle = ({ title, tooltip }: { title: string; tooltip?: string | null }) => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React, { useState, useRef, useEffect, useMemo, useCallback } from 'react';
|
||||
import { createPortal } from 'react-dom';
|
||||
import { useSelector } from 'react-redux';
|
||||
import { PlusOutlined, TagOutlined } from '@ant-design/icons';
|
||||
import { PlusOutlined, TagOutlined } from '@/shared/antd-imports';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { RootState } from '@/app/store';
|
||||
import { IProjectTask } from '@/types/project/projectTasksViewModel.types';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React, { useState } from 'react';
|
||||
import { getJSONFromLocalStorage, saveJSONToLocalStorage } from '../utils/localStorageFunctions';
|
||||
import { Button, ConfigProvider, Tooltip } from '@/shared/antd-imports';
|
||||
import { PushpinFilled, PushpinOutlined } from '@ant-design/icons';
|
||||
import { PushpinFilled, PushpinOutlined } from '@/shared/antd-imports';
|
||||
import { colors } from '../styles/colors';
|
||||
import { navRoutes, NavRoutesType } from '../features/navbar/navRoutes';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { FloatButton, Space, Tooltip } from '@/shared/antd-imports';
|
||||
import { FormatPainterOutlined } from '@ant-design/icons';
|
||||
import { FormatPainterOutlined } from '@/shared/antd-imports';
|
||||
// import LanguageSelector from '../features/i18n/language-selector';
|
||||
// import ThemeSelector from '../features/theme/ThemeSelector';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React, { useEffect, useRef } from 'react';
|
||||
import { Form, Input, Button, List, Alert, message, InputRef } from '@/shared/antd-imports';
|
||||
import { CloseCircleOutlined, MailOutlined, PlusOutlined } from '@ant-design/icons';
|
||||
import { CloseCircleOutlined, MailOutlined, PlusOutlined } from '@/shared/antd-imports';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Typography } from '@/shared/antd-imports';
|
||||
import { setTeamMembers, setTasks } from '@/features/account-setup/account-setup.slice';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React, { useEffect, useRef } from 'react';
|
||||
import { Form, Input, Button, Typography, List, InputRef } from '@/shared/antd-imports';
|
||||
import { PlusOutlined, DeleteOutlined, CloseCircleOutlined } from '@ant-design/icons';
|
||||
import { PlusOutlined, DeleteOutlined, CloseCircleOutlined } from '@/shared/antd-imports';
|
||||
import { useDispatch, useSelector } from 'react-redux';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { RootState } from '@/app/store';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React, { useState } from 'react';
|
||||
import { Avatar, Button, Checkbox, Dropdown, Input, Menu, Typography } from '@/shared/antd-imports';
|
||||
import { UserAddOutlined, UsergroupAddOutlined } from '@ant-design/icons';
|
||||
import { UserAddOutlined, UsergroupAddOutlined } from '@/shared/antd-imports';
|
||||
import './add-members-dropdown.css';
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import { AvatarNamesMap } from '@/shared/constants';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React, { useState } from 'react';
|
||||
import { Avatar, Button, Checkbox, Dropdown, Input, Menu, Typography } from '@/shared/antd-imports';
|
||||
import { PlusOutlined, UsergroupAddOutlined } from '@ant-design/icons';
|
||||
import { PlusOutlined, UsergroupAddOutlined } from '@/shared/antd-imports';
|
||||
import './add-members-dropdown.css';
|
||||
import { AvatarNamesMap } from '../../shared/constants';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
|
||||
@@ -2,7 +2,7 @@ import { adminCenterApiService } from '@/api/admin-center/admin-center.api.servi
|
||||
import { IBillingTransaction } from '@/types/admin-center/admin-center.types';
|
||||
import logger from '@/utils/errorLogger';
|
||||
import { formatDate } from '@/utils/timeUtils';
|
||||
import { ContainerOutlined } from '@ant-design/icons';
|
||||
import { ContainerOutlined } from '@/shared/antd-imports';
|
||||
import { Button, Table, TableProps, Tag, Tooltip } from '@/shared/antd-imports';
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Card, Col, Row, Tooltip } from '@/shared/antd-imports';
|
||||
import React, { useEffect, useMemo, useCallback } from 'react';
|
||||
import './current-bill.css';
|
||||
import { InfoCircleTwoTone } from '@ant-design/icons';
|
||||
import { InfoCircleTwoTone } from '@/shared/antd-imports';
|
||||
import ChargesTable from './billing-tables/charges-table';
|
||||
import InvoicesTable from './billing-tables/invoices-table';
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ import {
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { WarningTwoTone, PlusOutlined } from '@ant-design/icons';
|
||||
import { WarningTwoTone, PlusOutlined } from '@/shared/antd-imports';
|
||||
import { calculateTimeGap } from '@/utils/calculate-time-gap';
|
||||
import { formatDate } from '@/utils/timeUtils';
|
||||
import UpgradePlansLKR from '../drawers/upgrade-plans-lkr/upgrade-plans-lkr';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Button, Card, Col, Form, Input, notification, Row, Tag, Typography } from '@/shared/antd-imports';
|
||||
import React, { useState } from 'react';
|
||||
import './upgrade-plans-lkr.css';
|
||||
import { CheckCircleFilled } from '@ant-design/icons';
|
||||
import { CheckCircleFilled } from '@/shared/antd-imports';
|
||||
import { RootState } from '@/app/store';
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
@@ -22,7 +22,7 @@ import {
|
||||
import logger from '@/utils/errorLogger';
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import { IPaddlePlans, SUBSCRIPTION_STATUS } from '@/shared/constants';
|
||||
import { CheckCircleFilled, InfoCircleOutlined } from '@ant-design/icons';
|
||||
import { CheckCircleFilled, InfoCircleOutlined } from '@/shared/antd-imports';
|
||||
import { useAuthService } from '@/hooks/useAuth';
|
||||
import { fetchBillingInfo, toggleUpgradeModal } from '@/features/admin-center/admin-center.slice';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
import { adminCenterApiService } from '@/api/admin-center/admin-center.api.service';
|
||||
import logger from '@/utils/errorLogger';
|
||||
import { EnterOutlined, EditOutlined } from '@ant-design/icons';
|
||||
import { EnterOutlined, EditOutlined } from '@/shared/antd-imports';
|
||||
import { Card, Button, Tooltip, Typography } from '@/shared/antd-imports';
|
||||
import TextArea from 'antd/es/input/TextArea';
|
||||
import Paragraph from 'antd/es/typography/Paragraph';
|
||||
import { TFunction } from 'i18next';
|
||||
import { useState, useEffect } from 'react';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { adminCenterApiService } from '@/api/admin-center/admin-center.api.service';
|
||||
import { IOrganization } from '@/types/admin-center/admin-center.types';
|
||||
import logger from '@/utils/errorLogger';
|
||||
import { MailOutlined, PhoneOutlined, EditOutlined } from '@ant-design/icons';
|
||||
import { MailOutlined, PhoneOutlined, EditOutlined } from '@/shared/antd-imports';
|
||||
import { Card, Tooltip, Input, Button, Typography, InputRef } from '@/shared/antd-imports';
|
||||
import { TFunction } from 'i18next';
|
||||
import { useEffect, useRef, useState } from 'react';
|
||||
|
||||
@@ -5,7 +5,7 @@ import { toggleSettingDrawer, deleteTeam, fetchTeams } from '@/features/teams/te
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
import { IOrganizationTeam } from '@/types/admin-center/admin-center.types';
|
||||
import logger from '@/utils/errorLogger';
|
||||
import { SettingOutlined, DeleteOutlined } from '@ant-design/icons';
|
||||
import { SettingOutlined, DeleteOutlined } from '@/shared/antd-imports';
|
||||
import { Badge, Button, Card, Popconfirm, Table, TableProps, Tooltip, Typography } from '@/shared/antd-imports';
|
||||
import { TFunction } from 'i18next';
|
||||
import { useState } from 'react';
|
||||
|
||||
@@ -15,7 +15,7 @@ import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
import { toggleProjectMemberDrawer } from '../../../features/projects/singleProject/members/projectMembersSlice';
|
||||
import { colors } from '../../../styles/colors';
|
||||
import { PlusOutlined, UsergroupAddOutlined } from '@ant-design/icons';
|
||||
import { PlusOutlined, UsergroupAddOutlined } from '@/shared/antd-imports';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import SingleAvatar from '@/components/common/single-avatar/single-avatar';
|
||||
import { CheckboxChangeEvent } from 'antd/es/checkbox';
|
||||
|
||||
@@ -3,7 +3,7 @@ import React from 'react';
|
||||
import { TaskStatusType } from '../../../types/task.types';
|
||||
import { colors } from '../../../styles/colors';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
import { RetweetOutlined, RightOutlined } from '@ant-design/icons';
|
||||
import { RetweetOutlined, RightOutlined } from '@/shared/antd-imports';
|
||||
import './ChangeCategoryDropdown.css';
|
||||
import { updateStatusCategory } from '../../../features/projects/status/StatusSlice';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
LoadingOutlined,
|
||||
MoreOutlined,
|
||||
PlusOutlined,
|
||||
} from '@ant-design/icons';
|
||||
} from '@/shared/antd-imports';
|
||||
import { setTaskCardDisabled, initializeStatus } from '../../../features/board/create-card.slice';
|
||||
import { TaskType } from '../../../types/task.types';
|
||||
import TaskCreateCard from '../taskCreateCard/TaskCreateCard';
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
LoadingOutlined,
|
||||
MoreOutlined,
|
||||
PlusOutlined,
|
||||
} from '@ant-design/icons';
|
||||
} from '@/shared/antd-imports';
|
||||
import { setTaskCardDisabled, initializeStatus } from '../../../features/board/create-card.slice';
|
||||
import { TaskType } from '../../../types/task.types';
|
||||
import TaskCreateCard from '../taskCreateCard/TaskCreateCard';
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
LoadingOutlined,
|
||||
MoreOutlined,
|
||||
PlusOutlined,
|
||||
} from '@ant-design/icons';
|
||||
} from '@/shared/antd-imports';
|
||||
import { setTaskCardDisabled, initializeStatus } from '../../../features/board/create-card.slice';
|
||||
import { TaskType } from '../../../types/task.types';
|
||||
import TaskCreateCard from '../taskCreateCard/TaskCreateCard';
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
LoadingOutlined,
|
||||
MoreOutlined,
|
||||
PlusOutlined,
|
||||
} from '@ant-design/icons';
|
||||
} from '@/shared/antd-imports';
|
||||
import { setTaskCardDisabled, initializeStatus } from '../../../features/board/create-card.slice';
|
||||
import { TaskType } from '../../../types/task.types';
|
||||
import TaskCreateCard from '../taskCreateCard/TaskCreateCard';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React, { useState, useRef } from 'react';
|
||||
import { DatePicker, Button, Flex } from '@/shared/antd-imports';
|
||||
import { CalendarOutlined } from '@ant-design/icons';
|
||||
import { CalendarOutlined } from '@/shared/antd-imports';
|
||||
import dayjs, { Dayjs } from 'dayjs';
|
||||
import { useSocket } from '@/socket/socketContext';
|
||||
import { SocketEvents } from '@/shared/socket-events';
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
LoadingOutlined,
|
||||
MoreOutlined,
|
||||
PlusOutlined,
|
||||
} from '@ant-design/icons';
|
||||
} from '@/shared/antd-imports';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useDroppable } from '@dnd-kit/core';
|
||||
import { SortableContext, verticalListSortingStrategy } from '@dnd-kit/sortable';
|
||||
|
||||
@@ -20,7 +20,7 @@ import {
|
||||
ForkOutlined,
|
||||
CaretRightFilled,
|
||||
CaretDownFilled,
|
||||
} from '@ant-design/icons';
|
||||
} from '@/shared/antd-imports';
|
||||
import './TaskCard.css';
|
||||
import dayjs, { Dayjs } from 'dayjs';
|
||||
import AddMembersDropdown from '../../add-members-dropdown/add-members-dropdown';
|
||||
|
||||
@@ -4,7 +4,7 @@ import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import { useState, useEffect, useMemo } from 'react';
|
||||
import { IProjectTask } from '@/types/project/projectTasksViewModel.types';
|
||||
import { ITaskPriority } from '@/types/tasks/taskPriority.types';
|
||||
import { DoubleLeftOutlined, MinusOutlined, PauseOutlined } from '@ant-design/icons';
|
||||
import { DoubleLeftOutlined, MinusOutlined, PauseOutlined } from '@/shared/antd-imports';
|
||||
|
||||
type PrioritySectionProps = {
|
||||
task: IProjectTask;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React, { useState, useRef, useEffect, useMemo, useCallback } from 'react';
|
||||
import { createPortal } from 'react-dom';
|
||||
import { PlusOutlined, UserAddOutlined } from '@ant-design/icons';
|
||||
import { PlusOutlined, UserAddOutlined } from '@/shared/antd-imports';
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
import { toggleProjectMemberDrawer } from '@/features/projects/singleProject/members/projectMembersSlice';
|
||||
|
||||
@@ -4,7 +4,7 @@ import Icon, {
|
||||
ClockCircleOutlined,
|
||||
CloseCircleOutlined,
|
||||
StopOutlined,
|
||||
} from '@ant-design/icons';
|
||||
} from '@/shared/antd-imports';
|
||||
|
||||
const iconMap = {
|
||||
'clock-circle': ClockCircleOutlined,
|
||||
|
||||
@@ -22,7 +22,7 @@ import {
|
||||
IWorklenzTemplate,
|
||||
} from '@/types/project-templates/project-templates.types';
|
||||
import './template-drawer.css';
|
||||
import { SearchOutlined } from '@ant-design/icons';
|
||||
import { SearchOutlined } from '@/shared/antd-imports';
|
||||
import logger from '@/utils/errorLogger';
|
||||
|
||||
const { Title, Text } = Typography;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import React, { useState, useRef, useEffect, useMemo } from 'react';
|
||||
import { Button, Flex } from '@/shared/antd-imports';
|
||||
import { PlusOutlined } from '@ant-design/icons';
|
||||
import { PlusOutlined } from '@/shared/antd-imports';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { nanoid } from '@reduxjs/toolkit';
|
||||
import { DownOutlined } from '@ant-design/icons';
|
||||
import { DownOutlined } from '@/shared/antd-imports';
|
||||
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import { themeWiseColor } from '@/utils/themeWiseColor';
|
||||
|
||||
@@ -15,10 +15,10 @@ import PrioritySection from '../board/taskCard/priority-section/priority-section
|
||||
import Typography from 'antd/es/typography';
|
||||
import CustomDueDatePicker from '../board/custom-due-date-picker';
|
||||
import { themeWiseColor } from '@/utils/themeWiseColor';
|
||||
import { ForkOutlined } from '@ant-design/icons';
|
||||
import { ForkOutlined } from '@/shared/antd-imports';
|
||||
import { Dayjs } from 'dayjs';
|
||||
import dayjs from 'dayjs';
|
||||
import { CaretDownFilled, CaretRightFilled } from '@ant-design/icons';
|
||||
import { CaretDownFilled, CaretRightFilled } from '@/shared/antd-imports';
|
||||
import {
|
||||
fetchBoardSubTasks,
|
||||
toggleTaskExpansion,
|
||||
@@ -26,7 +26,7 @@ import {
|
||||
import { Divider } from '@/shared/antd-imports';
|
||||
import { List } from '@/shared/antd-imports';
|
||||
import { Skeleton } from '@/shared/antd-imports';
|
||||
import { PlusOutlined } from '@ant-design/icons';
|
||||
import { PlusOutlined } from '@/shared/antd-imports';
|
||||
import BoardSubTaskCard from '@/pages/projects/projectView/board/board-section/board-sub-task-card/board-sub-task-card';
|
||||
import BoardCreateSubtaskCard from '@/pages/projects/projectView/board/board-section/board-sub-task-card/board-create-sub-task-card';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
@@ -2,7 +2,7 @@ import React, { useState } from 'react';
|
||||
import { useDroppable } from '@dnd-kit/core';
|
||||
import { SortableContext, verticalListSortingStrategy } from '@dnd-kit/sortable';
|
||||
import { Button, Typography } from '@/shared/antd-imports';
|
||||
import { PlusOutlined, MenuOutlined } from '@ant-design/icons';
|
||||
import { PlusOutlined, MenuOutlined } from '@/shared/antd-imports';
|
||||
import { ITaskListGroup } from '@/types/tasks/taskList.types';
|
||||
import { IGroupBy } from '@/features/tasks/tasks.slice';
|
||||
import KanbanTaskCard from './kanbanTaskCard';
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
MessageOutlined,
|
||||
PaperClipOutlined,
|
||||
ClockCircleOutlined,
|
||||
} from '@ant-design/icons';
|
||||
} from '@/shared/antd-imports';
|
||||
import { IProjectTask } from '@/types/project/projectTasksViewModel.types';
|
||||
import { IGroupBy } from '@/features/tasks/tasks.slice';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { BellOutlined } from '@ant-design/icons';
|
||||
import { BellOutlined } from '@/shared/antd-imports';
|
||||
import { Badge, Button, Tooltip } from '@/shared/antd-imports';
|
||||
import { toggleDrawer } from '@features/navbar/notificationSlice';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { IWorklenzNotification } from '@/types/notifications/notifications.types';
|
||||
import { BankOutlined } from '@ant-design/icons';
|
||||
import { BankOutlined } from '@/shared/antd-imports';
|
||||
import { Button, Tag, Typography, theme } from '@/shared/antd-imports';
|
||||
import DOMPurify from 'dompurify';
|
||||
import React, { useState } from 'react';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Button, Typography, Tag } from '@/shared/antd-imports';
|
||||
import { BankOutlined } from '@ant-design/icons';
|
||||
import { BankOutlined } from '@/shared/antd-imports';
|
||||
import { IWorklenzNotification } from '@/types/notifications/notifications.types';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
|
||||
@@ -2,7 +2,7 @@ import { notification } from '@/shared/antd-imports';
|
||||
import { IWorklenzNotification } from '@/types/notifications/notifications.types';
|
||||
import { teamsApiService } from '@/api/teams/teams.api.service';
|
||||
import { toQueryString } from '@/utils/toQueryString';
|
||||
import { BankOutlined } from '@ant-design/icons';
|
||||
import { BankOutlined } from '@/shared/antd-imports';
|
||||
import './push-notification-template.css';
|
||||
|
||||
const PushNotificationTemplate = ({
|
||||
|
||||
@@ -14,7 +14,6 @@ import {
|
||||
Divider,
|
||||
} from '@/shared/antd-imports';
|
||||
import {
|
||||
ClockCircleOutlined,
|
||||
TeamOutlined,
|
||||
CheckCircleOutlined,
|
||||
ProjectOutlined,
|
||||
@@ -22,7 +21,7 @@ import {
|
||||
SettingOutlined,
|
||||
InboxOutlined,
|
||||
MoreOutlined,
|
||||
} from '@ant-design/icons';
|
||||
} from '@/shared/antd-imports';
|
||||
import { ProjectGroupListProps } from '@/types/project/project.types';
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
|
||||
@@ -13,7 +13,7 @@ import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import useIsProjectManager from '@/hooks/useIsProjectManager';
|
||||
import { IProjectViewModel } from '@/types/project/projectViewModel.types';
|
||||
import logger from '@/utils/errorLogger';
|
||||
import { SettingOutlined, InboxOutlined } from '@ant-design/icons';
|
||||
import { SettingOutlined, InboxOutlined } from '@/shared/antd-imports';
|
||||
import { Tooltip, Button, Popconfirm, Space } from '@/shared/antd-imports';
|
||||
import {
|
||||
evt_projects_archive,
|
||||
|
||||
@@ -7,7 +7,7 @@ import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import { colors } from '@/styles/colors';
|
||||
import { IProjectViewModel } from '@/types/project/projectViewModel.types';
|
||||
import { StarFilled } from '@ant-design/icons';
|
||||
import { StarFilled } from '@/shared/antd-imports';
|
||||
import { Button, ConfigProvider, Tooltip } from '@/shared/antd-imports';
|
||||
import { TFunction } from 'i18next';
|
||||
import { useCallback, useMemo } from 'react';
|
||||
|
||||
@@ -6,7 +6,7 @@ import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import { IProjectViewModel } from '@/types/project/projectViewModel.types';
|
||||
import { formatDateRange } from '@/utils/project-list-utils';
|
||||
import { CalendarOutlined } from '@ant-design/icons';
|
||||
import { CalendarOutlined } from '@/shared/antd-imports';
|
||||
import { Badge, Tooltip } from '@/shared/antd-imports';
|
||||
import { TFunction } from 'i18next';
|
||||
import { NavigateFunction } from 'react-router-dom';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { SettingOutlined } from '@ant-design/icons';
|
||||
import { SettingOutlined } from '@/shared/antd-imports';
|
||||
import Tooltip from 'antd/es/tooltip';
|
||||
import Button from 'antd/es/button';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
|
||||
@@ -10,7 +10,7 @@ import { fetchTaskGroups } from '@/features/tasks/tasks.slice';
|
||||
|
||||
import { deleteStatusToggleDrawer } from '@/features/projects/status/DeleteStatusSlice';
|
||||
import { Drawer, Alert, Card, Select, Button, Typography, Badge } from '@/shared/antd-imports';
|
||||
import { DownOutlined } from '@ant-design/icons';
|
||||
import { DownOutlined } from '@/shared/antd-imports';
|
||||
import { useSelector } from 'react-redux';
|
||||
import {
|
||||
deleteSection,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import { Modal, Checkbox, Button, Flex, Typography, Space, Divider, message } from '@/shared/antd-imports';
|
||||
import { SettingOutlined, UpOutlined, DownOutlined } from '@ant-design/icons';
|
||||
import { SettingOutlined, UpOutlined, DownOutlined } from '@/shared/antd-imports';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
// Configuration interface for column visibility
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useEffect, useMemo } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { CaretDownFilled } from '@ant-design/icons';
|
||||
import { CaretDownFilled } from '@/shared/antd-imports';
|
||||
import { ConfigProvider, Flex, Dropdown, Button } from 'antd/es';
|
||||
import { useSearchParams } from 'react-router-dom';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { CaretDownFilled } from '@ant-design/icons';
|
||||
import { CaretDownFilled } from '@/shared/antd-imports';
|
||||
import Badge from 'antd/es/badge';
|
||||
import Button from 'antd/es/button';
|
||||
import Card from 'antd/es/card';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useMemo, useRef, useState, useCallback, useEffect } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { CaretDownFilled } from '@ant-design/icons';
|
||||
import { CaretDownFilled } from '@/shared/antd-imports';
|
||||
import {
|
||||
Badge,
|
||||
Button,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { CaretDownFilled } from '@ant-design/icons';
|
||||
import { CaretDownFilled } from '@/shared/antd-imports';
|
||||
import { useMemo, useEffect, useCallback } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import Space from 'antd/es/space';
|
||||
import Dropdown from 'antd/es/dropdown';
|
||||
|
||||
import { setSearch } from '@/features/tasks/tasks.slice';
|
||||
import { SearchOutlined } from '@ant-design/icons';
|
||||
import { SearchOutlined } from '@/shared/antd-imports';
|
||||
|
||||
import { setBoardSearch } from '@/features/board/board-slice';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { MoreOutlined, SettingOutlined } from '@ant-design/icons';
|
||||
import { MoreOutlined, SettingOutlined } from '@/shared/antd-imports';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import Button from 'antd/es/button';
|
||||
import Checkbox from 'antd/es/checkbox';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { CaretDownFilled, SortAscendingOutlined, SortDescendingOutlined } from '@ant-design/icons';
|
||||
import { CaretDownFilled, SortAscendingOutlined, SortDescendingOutlined } from '@/shared/antd-imports';
|
||||
|
||||
import Badge from 'antd/es/badge';
|
||||
import Button from 'antd/es/button';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Button, Drawer, Dropdown } from '@/shared/antd-imports';
|
||||
import { useEffect, useState } from 'react';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
import { DownOutlined, EditOutlined, ImportOutlined } from '@ant-design/icons';
|
||||
import { DownOutlined, EditOutlined, ImportOutlined } from '@/shared/antd-imports';
|
||||
import TemplateDrawer from '@/components/common/template-drawer/template-drawer';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useLocation, useNavigate } from 'react-router-dom';
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
Select,
|
||||
Typography,
|
||||
} from '@/shared/antd-imports';
|
||||
import { PlusOutlined } from '@ant-design/icons';
|
||||
import { PlusOutlined } from '@/shared/antd-imports';
|
||||
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
import {
|
||||
|
||||
@@ -2,7 +2,7 @@ import { createClient, fetchClients } from '@/features/settings/client/clientSli
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
import { IClientsViewModel } from '@/types/client.types';
|
||||
import { IProjectViewModel } from '@/types/project/projectViewModel.types';
|
||||
import { QuestionCircleOutlined } from '@ant-design/icons';
|
||||
import { QuestionCircleOutlined } from '@/shared/antd-imports';
|
||||
import { AutoComplete, Flex, Form, FormInstance, Spin, Tooltip, Typography } from '@/shared/antd-imports';
|
||||
import { TFunction } from 'i18next';
|
||||
import { useState } from 'react';
|
||||
|
||||
@@ -3,7 +3,7 @@ import { getTeamMembers } from '@/features/team-members/team-members.slice';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import { ITeamMemberViewModel } from '@/types/teamMembers/teamMembersGetResponse.types';
|
||||
import { CloseCircleFilled, PlusCircleOutlined } from '@ant-design/icons';
|
||||
import { CloseCircleFilled, PlusCircleOutlined } from '@/shared/antd-imports';
|
||||
import { Button, Dropdown, Flex, Input, InputRef, theme, Typography } from '@/shared/antd-imports';
|
||||
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
toggleProjectMemberDrawer,
|
||||
} from '@/features/projects/singleProject/members/projectMembersSlice';
|
||||
import SingleAvatar from '@/components/common/single-avatar/single-avatar';
|
||||
import { DeleteOutlined, MailOutlined } from '@ant-design/icons';
|
||||
import { DeleteOutlined, MailOutlined } from '@/shared/antd-imports';
|
||||
import { getTeamMembers } from '@/features/team-members/team-members.slice';
|
||||
import logger from '@/utils/errorLogger';
|
||||
import { validateEmail } from '@/utils/validateEmail';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ReactNode } from 'react';
|
||||
import { Card, Flex, Skeleton, Tooltip, Typography } from '@/shared/antd-imports';
|
||||
import { ExclamationCircleOutlined } from '@ant-design/icons';
|
||||
import { ExclamationCircleOutlined } from '@/shared/antd-imports';
|
||||
import { colors } from '@/styles/colors';
|
||||
|
||||
type InsightCardProps = {
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import { Drawer, Typography, Flex, Button, Dropdown } from '@/shared/antd-imports';
|
||||
import React, { useState } from 'react';
|
||||
import { useAppSelector } from '../../../../hooks/useAppSelector';
|
||||
import { useAppDispatch } from '../../../../hooks/useAppDispatch';
|
||||
import { BankOutlined, DownOutlined } from '@ant-design/icons';
|
||||
import { BankOutlined } from '@/shared/antd-imports';
|
||||
import { colors } from '../../../../styles/colors';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
@@ -28,7 +27,7 @@ const OverviewTeamInfoDrawer = ({ team }: OverviewTeamInfoDrawerProps) => {
|
||||
return (
|
||||
<Drawer
|
||||
open={isDrawerOpen}
|
||||
destroyOnClose
|
||||
destroyOnHidden
|
||||
onClose={handleClose}
|
||||
width={900}
|
||||
title={
|
||||
|
||||
@@ -2,7 +2,7 @@ import { useEffect, useState, useMemo } from 'react';
|
||||
import { Button, ConfigProvider, Flex, PaginationProps, Table, TableColumnsType } from '@/shared/antd-imports';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { createPortal } from 'react-dom';
|
||||
import { ExpandAltOutlined } from '@ant-design/icons';
|
||||
import { ExpandAltOutlined } from '@/shared/antd-imports';
|
||||
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { CaretDownFilled, DownOutlined } from '@ant-design/icons';
|
||||
import { DownOutlined } from '@/shared/antd-imports';
|
||||
import { Button, Card, DatePicker, Divider, Dropdown, Flex, List, Typography } from '@/shared/antd-imports';
|
||||
import { useState, useEffect } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
@@ -2,7 +2,7 @@ import React, { useEffect, useState } from 'react';
|
||||
import { AvatarNamesMap } from '@/shared/constants';
|
||||
import { Member } from '@/types/schedule/schedule.types';
|
||||
import { Avatar, Badge, Button, Col, Flex, Popover, Row, Tooltip } from '@/shared/antd-imports';
|
||||
import { CaretDownOutlined, CaretRightFilled } from '@ant-design/icons';
|
||||
import { CaretDownOutlined, CaretRightFilled } from '@/shared/antd-imports';
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import './Team.css';
|
||||
import { useDispatch } from 'react-redux';
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
fetchMemberProjects,
|
||||
toggleScheduleDrawer,
|
||||
} from '../../../features/schedule/scheduleSlice';
|
||||
import { CaretDownOutlined, CaretRightFilled } from '@ant-design/icons';
|
||||
import { CaretDownOutlined, CaretRightFilled } from '@/shared/antd-imports';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import { getWorking, toggleScheduleDrawer } from '../../../features/schedule/sch
|
||||
import ProjectTimelineModal from '../../../features/schedule/ProjectTimelineModal';
|
||||
import { Resizable } from 're-resizable';
|
||||
import { themeWiseColor } from '../../../utils/themeWiseColor';
|
||||
import { MoreOutlined } from '@ant-design/icons';
|
||||
import { MoreOutlined } from '@/shared/antd-imports';
|
||||
import { CELL_WIDTH } from '../../../shared/constants';
|
||||
import { ScheduleData } from '@/types/schedule/schedule-v2.types';
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import React from 'react';
|
||||
import { Badge, Button, Space, Tooltip, message } from '@/shared/antd-imports';
|
||||
import { WifiOutlined, DisconnectOutlined, ReloadOutlined, DeleteOutlined } from '@ant-design/icons';
|
||||
import { WifiOutlined, DisconnectOutlined, ReloadOutlined, DeleteOutlined } from '@/shared/antd-imports';
|
||||
import { useServiceWorker } from '../../utils/serviceWorkerRegistration';
|
||||
|
||||
interface ServiceWorkerStatusProps {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Timeline, Typography, Flex, ConfigProvider, Tag, Tooltip, Skeleton } from '@/shared/antd-imports';
|
||||
import { useEffect, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { ArrowRightOutlined } from '@ant-design/icons';
|
||||
import { ArrowRightOutlined } from '@/shared/antd-imports';
|
||||
|
||||
import {
|
||||
IActivityLog,
|
||||
|
||||
@@ -3,8 +3,6 @@ import AttachmentsPreview from './attachments-preview';
|
||||
import './attachments-preview.css';
|
||||
import type { RcFile, UploadProps } from 'antd/es/upload';
|
||||
import { TFunction } from 'i18next';
|
||||
import { ReloadOutlined } from '@ant-design/icons';
|
||||
import { message } from '@/shared/antd-imports';
|
||||
import AttachmentsUpload from './attachments-upload';
|
||||
|
||||
interface AttachmentsGridProps {
|
||||
|
||||
@@ -6,8 +6,7 @@ import {
|
||||
DownloadOutlined,
|
||||
DeleteOutlined,
|
||||
QuestionCircleOutlined,
|
||||
LoadingOutlined,
|
||||
} from '@ant-design/icons';
|
||||
} from '@/shared/antd-imports';
|
||||
import { attachmentsApiService } from '@/api/attachments/attachments.api.service';
|
||||
import { IconsMap } from '@/shared/constants';
|
||||
import './attachments-preview.css';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { LoadingOutlined, PlusOutlined } from '@ant-design/icons';
|
||||
import { LoadingOutlined, PlusOutlined } from '@/shared/antd-imports';
|
||||
import React, { useRef, useState } from 'react';
|
||||
import { TFunction } from 'i18next';
|
||||
import './attachments-upload.css';
|
||||
|
||||
@@ -3,7 +3,7 @@ import { Skeleton, Avatar, Tooltip, Popconfirm } from '@/shared/antd-imports';
|
||||
import { Comment } from '@ant-design/compatible';
|
||||
import dayjs from 'dayjs';
|
||||
|
||||
import { LikeOutlined, LikeTwoTone } from '@ant-design/icons';
|
||||
import { LikeOutlined, LikeTwoTone } from '@/shared/antd-imports';
|
||||
import { ITaskCommentViewModel } from '@/types/tasks/task-comments.types';
|
||||
import taskCommentsApiService from '@/api/tasks/task-comments.api.service';
|
||||
import { useAuthService } from '@/hooks/useAuth';
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
Typography,
|
||||
} from '@/shared/antd-imports';
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import { DeleteOutlined, ExclamationCircleFilled } from '@ant-design/icons';
|
||||
import { DeleteOutlined, ExclamationCircleFilled } from '@/shared/antd-imports';
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
import { updateTaskCounts } from '@/features/task-management/task-management.slice';
|
||||
|
||||
@@ -11,7 +11,7 @@ import Button from 'antd/es/button';
|
||||
import { useMemo, useRef, useState } from 'react';
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
import { PlusOutlined } from '@ant-design/icons';
|
||||
import { PlusOutlined } from '@/shared/antd-imports';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import SingleAvatar from '@/components/common/single-avatar/single-avatar';
|
||||
import { CheckboxChangeEvent } from 'antd/es/checkbox';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { PlusOutlined } from '@ant-design/icons';
|
||||
import { PlusOutlined } from '@/shared/antd-imports';
|
||||
import {
|
||||
Badge,
|
||||
Button,
|
||||
|
||||
@@ -6,7 +6,7 @@ import { ALPHA_CHANNEL } from '@/shared/constants';
|
||||
import { useSocket } from '@/socket/socketContext';
|
||||
import { SocketEvents } from '@/shared/socket-events';
|
||||
import { ITaskPriority } from '@/types/tasks/taskPriority.types';
|
||||
import { DoubleLeftOutlined, MinusOutlined, PauseOutlined } from '@ant-design/icons';
|
||||
import { DoubleLeftOutlined, MinusOutlined, PauseOutlined } from '@/shared/antd-imports';
|
||||
import { ITaskViewModel } from '@/types/tasks/task.types';
|
||||
import { useAuthService } from '@/hooks/useAuth';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Form, InputNumber, Tooltip, Modal } from '@/shared/antd-imports';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { QuestionCircleOutlined } from '@ant-design/icons';
|
||||
import { QuestionCircleOutlined } from '@/shared/antd-imports';
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import { ITaskViewModel } from '@/types/tasks/task.types';
|
||||
import Flex from 'antd/lib/flex';
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
Row,
|
||||
Col,
|
||||
} from '@/shared/antd-imports';
|
||||
import { SettingOutlined } from '@ant-design/icons';
|
||||
import { SettingOutlined } from '@/shared/antd-imports';
|
||||
import { useSocket } from '@/socket/socketContext';
|
||||
import { SocketEvents } from '@/shared/socket-events';
|
||||
import {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Button, Flex, Form, Mentions, Space, Tooltip, Typography, message } from '@/shared/antd-imports';
|
||||
import { useCallback, useEffect, useRef, useState, useMemo } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { PaperClipOutlined, DeleteOutlined, PlusOutlined } from '@ant-design/icons';
|
||||
import { PaperClipOutlined, DeleteOutlined, PlusOutlined } from '@/shared/antd-imports';
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
import { colors } from '@/styles/colors';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { PlusOutlined } from '@ant-design/icons';
|
||||
import { PlusOutlined } from '@/shared/antd-imports';
|
||||
import {
|
||||
Button,
|
||||
Card,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Button, Flex, Input, Popconfirm, Progress, Table, Tag, Tooltip } from '@/shared/antd-imports';
|
||||
import { useState, useMemo, useEffect } from 'react';
|
||||
import { DeleteOutlined, EditOutlined, ExclamationCircleFilled } from '@ant-design/icons';
|
||||
import { DeleteOutlined, EditOutlined, ExclamationCircleFilled } from '@/shared/antd-imports';
|
||||
import { nanoid } from '@reduxjs/toolkit';
|
||||
import { TFunction } from 'i18next';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Button, Collapse, CollapseProps, Flex, Skeleton, Tooltip, Typography, Upload } from '@/shared/antd-imports';
|
||||
import { Button, Collapse, CollapseProps, Flex, Skeleton, Tooltip, Typography } from '@/shared/antd-imports';
|
||||
import React, { useEffect, useState, useRef } from 'react';
|
||||
import { ReloadOutlined } from '@ant-design/icons';
|
||||
import { ReloadOutlined } from '@/shared/antd-imports';
|
||||
import DescriptionEditor from './description-editor';
|
||||
import SubTaskTable from './subtask-table';
|
||||
import DependenciesTable from './dependencies-table';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { DownloadOutlined, PlusOutlined } from '@ant-design/icons';
|
||||
import { DownloadOutlined, PlusOutlined } from '@/shared/antd-imports';
|
||||
import { Button, Divider, Flex, Skeleton, Typography } from '@/shared/antd-imports';
|
||||
import { useEffect, useState } from 'react';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { DownloadOutlined, PlayCircleFilled, PlusOutlined } from '@ant-design/icons';
|
||||
import { DownloadOutlined } from '@/shared/antd-imports';
|
||||
import { Button, Divider, Flex, Skeleton, Typography } from '@/shared/antd-imports';
|
||||
import { useEffect, useState, useCallback } from 'react';
|
||||
import { TFunction } from 'i18next';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import { Button, DatePicker, Form, Input, TimePicker, Flex } from '@/shared/antd-imports';
|
||||
import { ClockCircleOutlined } from '@ant-design/icons';
|
||||
import { ClockCircleOutlined } from '@/shared/antd-imports';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import dayjs from 'dayjs';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Button, Dropdown, Flex, Input, InputRef, MenuProps, Tooltip } from '@/shared/antd-imports';
|
||||
import React, { ChangeEvent, useEffect, useRef, useState } from 'react';
|
||||
import { EllipsisOutlined } from '@ant-design/icons';
|
||||
import { EllipsisOutlined } from '@/shared/antd-imports';
|
||||
import { TFunction } from 'i18next';
|
||||
|
||||
import './task-drawer-header.css';
|
||||
|
||||
@@ -3,7 +3,7 @@ import Drawer from 'antd/es/drawer';
|
||||
import { InputRef } from 'antd/es/input';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useEffect, useRef, useState } from 'react';
|
||||
import { PlusOutlined, CloseOutlined, ArrowLeftOutlined } from '@ant-design/icons';
|
||||
import { PlusOutlined, CloseOutlined, ArrowLeftOutlined } from '@/shared/antd-imports';
|
||||
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import { Breadcrumb, Button, Typography, Tooltip } from '@/shared/antd-imports';
|
||||
import { HomeOutlined } from '@ant-design/icons';
|
||||
import { HomeOutlined } from '@/shared/antd-imports';
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
import { fetchTask, setSelectedTaskId } from '@/features/task-drawer/task-drawer.slice';
|
||||
|
||||
@@ -18,7 +18,7 @@ import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
import { toggleProjectMemberDrawer } from '../../../features/projects/singleProject/members/projectMembersSlice';
|
||||
import CustomAvatar from '../../CustomAvatar';
|
||||
import { colors } from '../../../styles/colors';
|
||||
import { PlusOutlined, UsergroupAddOutlined } from '@ant-design/icons';
|
||||
import { PlusOutlined, UsergroupAddOutlined } from '@/shared/antd-imports';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { ITaskAssignee } from '@/types/tasks/task.types';
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
setConvertToSubtaskDrawerOpen,
|
||||
updateTaskStatus,
|
||||
} from '@/features/tasks/tasks.slice';
|
||||
import { RightOutlined } from '@ant-design/icons';
|
||||
import { RightOutlined } from '@/shared/antd-imports';
|
||||
import CustomSearchbar from '@/components/CustomSearchbar';
|
||||
import { ITaskListConfigV2, tasksApiService } from '@/api/tasks/tasks.api.service';
|
||||
import { SocketEvents } from '@/shared/socket-events';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* eslint-disable react-hooks/exhaustive-deps */
|
||||
import { PlusOutlined } from '@ant-design/icons';
|
||||
import { PlusOutlined } from '@/shared/antd-imports';
|
||||
import {
|
||||
Badge,
|
||||
Button,
|
||||
|
||||
@@ -7,7 +7,7 @@ import { useSocket } from '@/socket/socketContext';
|
||||
import { SocketEvents } from '@/shared/socket-events';
|
||||
import { IProjectTask } from '@/types/project/projectTasksViewModel.types';
|
||||
import { ITaskPriority } from '@/types/tasks/taskPriority.types';
|
||||
import { DoubleLeftOutlined, MinusOutlined, PauseOutlined } from '@ant-design/icons';
|
||||
import { DoubleLeftOutlined, MinusOutlined, PauseOutlined } from '@/shared/antd-imports';
|
||||
|
||||
type PriorityDropdownProps = {
|
||||
task: IProjectTask;
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
DownOutlined,
|
||||
RightOutlined,
|
||||
ExpandAltOutlined,
|
||||
} from '@ant-design/icons';
|
||||
} from '@/shared/antd-imports';
|
||||
import { colors } from '@/styles/colors';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
import { setShowTaskDrawer } from '@/features/task-drawer/task-drawer.slice';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React, { useMemo } from 'react';
|
||||
import { Divider, Empty, Flex, Popover, Typography } from '@/shared/antd-imports';
|
||||
import { PlayCircleFilled } from '@ant-design/icons';
|
||||
import { PlayCircleFilled } from '@/shared/antd-imports';
|
||||
import { colors } from '@/styles/colors';
|
||||
import CustomAvatar from '@components/CustomAvatar';
|
||||
import { mockTimeLogs } from '@/pages/projects/project-view-1/taskList/taskListTable/taskListTableCells/mockTimeLogs';
|
||||
|
||||
@@ -19,8 +19,7 @@ import {
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useParams } from 'react-router-dom';
|
||||
import { createPortal } from 'react-dom';
|
||||
import { Skeleton } from '@/shared/antd-imports';
|
||||
import { HolderOutlined } from '@ant-design/icons';
|
||||
import { HolderOutlined } from '@/shared/antd-imports';
|
||||
|
||||
// Redux hooks and selectors
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
|
||||
@@ -6,7 +6,7 @@ import TaskRow from './TaskRow';
|
||||
import SubtaskLoadingSkeleton from './SubtaskLoadingSkeleton';
|
||||
import { Task } from '@/types/task-management.types';
|
||||
import { Input, Button } from '@/shared/antd-imports';
|
||||
import { PlusOutlined } from '@ant-design/icons';
|
||||
import { PlusOutlined } from '@/shared/antd-imports';
|
||||
import { useSocket } from '@/socket/socketContext';
|
||||
import { SocketEvents } from '@/shared/socket-events';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React, { useState, useCallback, memo, useRef, useEffect } from 'react';
|
||||
import { Input } from '@/shared/antd-imports';
|
||||
import { PlusOutlined } from '@ant-design/icons';
|
||||
import { PlusOutlined } from '@/shared/antd-imports';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useSocket } from '@/socket/socketContext';
|
||||
import { SocketEvents } from '@/shared/socket-events';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React, { useState, useCallback, useMemo, memo, useEffect } from 'react';
|
||||
import { Button, Tooltip, Flex, Dropdown, DatePicker, Input } from '@/shared/antd-imports';
|
||||
import { PlusOutlined, SettingOutlined, UsergroupAddOutlined } from '@ant-design/icons';
|
||||
import { Tooltip, Flex, Dropdown, DatePicker, Input } from '@/shared/antd-imports';
|
||||
import { PlusOutlined, SettingOutlined } from '@/shared/antd-imports';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React, { memo, useCallback, useState } from 'react';
|
||||
import { DatePicker, Tooltip } from '@/shared/antd-imports';
|
||||
import { CloseOutlined } from '@ant-design/icons';
|
||||
import { CloseOutlined } from '@/shared/antd-imports';
|
||||
import { dayjs, taskManagementAntdConfig } from '@/shared/antd-imports';
|
||||
import { Task } from '@/types/task-management.types';
|
||||
import { useSocket } from '@/socket/socketContext';
|
||||
|
||||
@@ -32,7 +32,7 @@ import {
|
||||
RetweetOutlined,
|
||||
UserAddOutlined,
|
||||
LoadingOutlined,
|
||||
} from '@ant-design/icons';
|
||||
} from '@/shared/antd-imports';
|
||||
|
||||
interface TaskContextMenuProps {
|
||||
task: Task;
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
import React, { memo, useCallback, useState, useRef } from 'react';
|
||||
import { CheckCircleOutlined, HolderOutlined, CloseOutlined, DownOutlined, RightOutlined, DoubleRightOutlined, ArrowsAltOutlined, CommentOutlined, EyeOutlined, PaperClipOutlined, MinusCircleOutlined, RetweetOutlined } from '@ant-design/icons';
|
||||
import { Checkbox, DatePicker, Tooltip, Input } from '@/shared/antd-imports';
|
||||
import type { InputRef } from '@/shared/antd-imports';
|
||||
import { dayjs, taskManagementAntdConfig } from '@/shared/antd-imports';
|
||||
import React, { memo } from 'react';
|
||||
import { CheckCircleOutlined, HolderOutlined } from '@/shared/antd-imports';
|
||||
import { Checkbox } from '@/shared/antd-imports';
|
||||
import { Task } from '@/types/task-management.types';
|
||||
import { InlineMember } from '@/types/teamMembers/inlineMember.types';
|
||||
import AssigneeSelector from '@/components/AssigneeSelector';
|
||||
import { format } from 'date-fns';
|
||||
import AvatarGroup from '../../AvatarGroup';
|
||||
@@ -13,9 +10,6 @@ import TaskProgress from '@/pages/projects/project-view-1/taskList/taskListTable
|
||||
import TaskStatusDropdown from '@/components/task-management/task-status-dropdown';
|
||||
import TaskPriorityDropdown from '@/components/task-management/task-priority-dropdown';
|
||||
import TaskPhaseDropdown from '@/components/task-management/task-phase-dropdown';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
import { setSelectedTaskId, setShowTaskDrawer } from '@/features/task-drawer/task-drawer.slice';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import TaskTimeTracking from '../TaskTimeTracking';
|
||||
import { CustomNumberLabel, CustomColordLabel } from '@/components';
|
||||
import LabelsSelector from '@/components/LabelsSelector';
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user