Skip to content

Commit e9937ca

Browse files
chore(condo): DOMA-4065 moved useDeepCompareEffect to codegen package
1 parent 53f3cb8 commit e9937ca

File tree

11 files changed

+2647
-1492
lines changed

11 files changed

+2647
-1492
lines changed

apps/condo/domains/common/hooks/useHotCodeReload.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import React, { useCallback, useEffect } from 'react'
22
import Router from 'next/router'
33
import { notification } from 'antd'
44
import { useIntl } from '@open-condo/next/intl'
5+
import { usePrevious } from '@open-condo/codegen/utils/usePrevious'
56
import { Button } from '@condo/domains/common/components/Button'
67
import { useCurrentBuild } from './useCurrentBuild'
7-
import { usePrevious } from './usePrevious'
88

99
/**
1010
* Periodically fetch information about build and compare it with previous value

apps/condo/domains/miniapp/components/GlobalApps/GlobalAppsContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { v4 as uuidV4 } from 'uuid'
1010
import { MutationEmitter, MUTATION_RESULT_EVENT } from '@open-condo/next/apollo'
1111
import { useAuth } from '@open-condo/next/auth'
1212
import { SortB2BAppsBy } from '@app/condo/schema'
13-
import { useDeepCompareEffect } from '@condo/domains/common/hooks/useDeepCompareEffect'
13+
import { useDeepCompareEffect } from '@open-condo/codegen/utils/useDeepCompareEffect'
1414
import { extractOrigin } from '@condo/domains/common/utils/url.utils'
1515
import {
1616
IFRAME_MODAL_ACTION_MESSAGE_TYPE,

apps/condo/domains/scope/components/BasePropertyScopeForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { useRouter } from 'next/router'
55
import React, { useCallback, useMemo, useState } from 'react'
66

77
import { useIntl } from '@open-condo/next/intl'
8+
import { useDeepCompareEffect } from '@open-condo/codegen/utils/useDeepCompareEffect'
89

910
import { FormWithAction } from '@condo/domains/common/components/containers/FormList'
1011
import {
@@ -21,7 +22,6 @@ import { GraphQlSearchInputWithCheckAll } from '@condo/domains/common/components
2122
import { searchEmployeeWithSpecializations } from '@condo/domains/organization/utils/clientSchema/search'
2223
import { useValidations } from '@condo/domains/common/hooks/useValidations'
2324
import { MAX_NAME_LENGTH } from '@condo/domains/scope/constants/index'
24-
import { useDeepCompareEffect } from '@condo/domains/common/hooks/useDeepCompareEffect'
2525
import { convertEmployeesToOptions } from '@condo/domains/scope/utils/clientSchema/utils'
2626

2727
import { FormHintAlert } from './FormHintAlert'

apps/condo/domains/ticket/components/BaseTicketForm/AutoAssigner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { useIntl } from '@open-condo/next/intl'
88
import {
99
getPropertyScopeNameByEmployee,
1010
} from '@condo/domains/scope/utils/clientSchema/utils'
11-
import { useDeepCompareEffect } from '@condo/domains/common/hooks/useDeepCompareEffect'
11+
import { useDeepCompareEffect } from '@open-condo/codegen/utils/useDeepCompareEffect'
1212

1313
/**
1414
* Sets the employee user in the assignee and executor fields after selecting ticket category classifier.

apps/condo/domains/ticket/schema/Ticket.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@ const {
5959
NEW_OR_REOPENED_STATUS_TYPE,
6060
DEFAULT_DEFERRED_DAYS,
6161
} = require('@condo/domains/ticket/constants')
62-
const { Organization } = require('../../organization/utils/testSchema')
6362
const { createTestPropertyScope, createTestPropertyScopeOrganizationEmployee, createTestPropertyScopeProperty } = require('@condo/domains/scope/utils/testSchema')
64-
const { PROPERTY_TICKET_VISIBILITY, PROPERTY_TICKET_VISIBILITY, PROPERTY_AND_SPECIALIZATION_VISIBILITY, PROPERTY_AND_SPECIALIZATION_VISIBILITY, ASSIGNED_TICKET_VISIBILITY, ORGANIZATION_TICKET_VISIBILITY } = require('@condo/domains/organization/constants/common')
63+
const { PROPERTY_TICKET_VISIBILITY, PROPERTY_AND_SPECIALIZATION_VISIBILITY, ASSIGNED_TICKET_VISIBILITY, ORGANIZATION_TICKET_VISIBILITY } = require('@condo/domains/organization/constants/common')
6564

6665
describe('Ticket', () => {
6766
describe('CRUD', () => {

apps/condo/migrations/20221123144712-0190_assigneescope_assigneescopehistoryrecord_and_more.js renamed to apps/condo/migrations/20221130123100-0194_assigneescope_assigneescopehistoryrecord_and_more.js

Lines changed: 56 additions & 4 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)