Skip to content

Commit

Permalink
chore(callcenter): DOMA-10739 move submodule to main
Browse files Browse the repository at this point in the history
  • Loading branch information
nomerdvadcatpyat committed Nov 26, 2024
1 parent 8a7c4ac commit 50e7f43
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion apps/callcenter
9 changes: 4 additions & 5 deletions apps/condo/pages/contact/[id]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,15 @@ export const ContactPageContent = ({ contact, isContactEditable, softDeleteActio
)
}

const ContactInfoPage: PageComponentType<{ id: string }> = ({ id: contactId }) => {
const ContactInfoPage: PageComponentType = () => {
const intl = useIntl()
const ErrorMessage = intl.formatMessage({ id: 'errors.LoadingError' })
const LoadingMessage = intl.formatMessage({ id: 'Loading' })
const ContactNotFoundTitle = intl.formatMessage({ id: 'Contact.NotFound.Title' })
const ContactNotFoundMessage = intl.formatMessage({ id: 'Contact.NotFound.Message' })

const { push } = useRouter()
const { push, query } = useRouter()
const { id: contactId } = query as { id: string }
const { role } = useOrganization()
const { persistor } = useCachePersistor()

Expand Down Expand Up @@ -277,9 +278,7 @@ ContactInfoPage.getPrefetchedData = async ({ context, apolloClient }) => {
await prefetchContact({ client: apolloClient, contactId })

return {
props: {
id: contactId,
},
props: {},
}
}

Expand Down
9 changes: 5 additions & 4 deletions apps/condo/pages/ticket/[id]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import isEmpty from 'lodash/isEmpty'
import map from 'lodash/map'
import Head from 'next/head'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { CSSProperties, useCallback, useEffect, useMemo, useState } from 'react'

import { useCachePersistor } from '@open-condo/apollo'
Expand Down Expand Up @@ -797,12 +798,14 @@ export const TicketPageContent = ({ ticket, pollCommentsQuery, refetchTicket, or
)
}

const TicketIdPage: PageComponentType<{ id: string }> = ({ id }) => {
const TicketIdPage: PageComponentType = () => {
const intl = useIntl()
const ServerErrorMessage = intl.formatMessage({ id: 'ServerError' })

const { user } = useAuth()
const { link, organization, selectEmployee } = useOrganization()
const { query } = useRouter()
const { id } = query as { id: string }

const { persistor } = useCachePersistor()

Expand Down Expand Up @@ -898,9 +901,7 @@ TicketIdPage.getPrefetchedData = async ({ context, apolloClient }) => {
await prefetchTicket({ client: apolloClient, ticketId })

return {
props: {
id: ticketId,
},
props: {},
}
}

Expand Down
11 changes: 7 additions & 4 deletions apps/condo/pages/ticket/[id]/update.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Typography, Row, Col } from 'antd'
import Head from 'next/head'
import { useRouter } from 'next/router'
import React from 'react'

import { useIntl } from '@open-condo/next/intl'
Expand All @@ -11,10 +12,14 @@ import { TicketForm } from '@condo/domains/ticket/components/TicketForm'
import { prefetchTicket } from '@condo/domains/ticket/utils/next/Ticket'


const TicketUpdatePage: PageComponentType<{ id: string }> = ({ id }) => {
const TicketUpdatePage: PageComponentType = () => {
const intl = useIntl()
const PageTitleMsg = intl.formatMessage({ id:'pages.condo.ticket.index.EditTicketModalTitle' })

const router = useRouter()
const { query } = router
const { id } = query as { id: string }

return (
<>
<Head>
Expand Down Expand Up @@ -43,9 +48,7 @@ TicketUpdatePage.getPrefetchedData = async ({ context, apolloClient }) => {
await prefetchTicket({ client: apolloClient, ticketId })

return {
props: {
id: ticketId,
},
props: {},
}
}

Expand Down

0 comments on commit 50e7f43

Please sign in to comment.