Кружки
@@ -61,18 +52,6 @@ export function CircleList() {
['Адрес', 'address'],
['Кол-во принятых заявок', 'accepted_count'],
]}
- pagination={{
- current: paginationParams.page,
- pageSize: paginationParams.pageSize,
- total: circles?.count,
- onChange: (page, pageSize) => {
- setPaginationParams({
- page,
- pageSize,
- })
- scrollToTop()
- },
- }}
data={circles}
isLoading={isFetching}
mainRoute={RoutePath[AppRoutes.CIRCLE_LIST]}
@@ -95,8 +74,9 @@ export function CircleList() {
},
}}
customWidths={[60, 25, 15]}
- searchRequestText={searchRequestText}
- setSearchRequestText={setSearchRequestText}
+ searchRequestText={searchRequestText || ''}
+ setSearchRequestText={(text) => setSearchRequestText(text)}
+ rowClassName={styles.tableRowPointer}
/>
)
diff --git a/apps/schools/domains/circle/components/circleList/styles/styles.module.scss b/apps/schools/domains/circle/components/circleList/styles/styles.module.scss
index 20a5f9b5..c0d78172 100644
--- a/apps/schools/domains/circle/components/circleList/styles/styles.module.scss
+++ b/apps/schools/domains/circle/components/circleList/styles/styles.module.scss
@@ -59,4 +59,8 @@
font-style: normal;
font-weight: 400;
line-height: 22px;
-}
\ No newline at end of file
+}
+
+.tableRowPointer:hover {
+ cursor: pointer;
+}
diff --git a/apps/schools/domains/circle/components/createCircleForm/index.tsx b/apps/schools/domains/circle/components/createCircleForm/index.tsx
index 3d5636a6..a06e375d 100644
--- a/apps/schools/domains/circle/components/createCircleForm/index.tsx
+++ b/apps/schools/domains/circle/components/createCircleForm/index.tsx
@@ -1,4 +1,4 @@
-import { Form, Typography, Input as AntdInput, Row, Spin, Tooltip } from 'antd'
+import { Form, Typography, Input as AntdInput, Row, Spin } from 'antd'
import React, { useEffect, useState } from 'react'
import { Input } from '@domains/common/components/input'
import styles from './styles/styles.module.scss'
@@ -6,12 +6,10 @@ import { Button } from '@domains/common/components/button'
import { useCreateCircleFormValidators } from './hooks'
import { useGetAllCirclesQuery } from '@domains/organization/redux/organizationApi'
import { useOrganization } from '@domains/organization/providers/organizationProvider'
-import { WithTooltip } from '@domains/common/components/tooltip/withTooltip'
-import { TOOLTIP_MARGIN } from './styles/styles'
import { isValidFormCheck } from '@domains/common/utils/form'
import { CIRCLE_NAME, CIRCLE_ADDRESS, ADDRESS_ROOM } from './constants'
import classnames from 'classnames'
-import { AimOutlined, QuestionCircleFilled } from '@ant-design/icons'
+import { AimOutlined } from '@ant-design/icons'
import { Select } from '@domains/common/components/select'
import { useCreateCircleMutation } from '../../redux/circleApi'
import { getVarsForAddressColumn } from '@domains/common/utils/geo'
@@ -21,14 +19,6 @@ import { mapSteps } from '@domains/circle/interfaces/mapStepsType'
import { FormMapSteps } from '@domains/circle/constants/Enums'
import Image from 'next/image'
import android from '@public/image/Android 11.png'
-import {
- DEFAULT_ICON_SIZE,
- DEFAULT_MARGIN,
- DEFAULT_OVERLAY_INNER_COLOR,
- DEFAULT_OVERLAY_INNER_STYLE,
- ICON_SIZES,
-} from '@domains/common/components/tooltip/styles/styles'
-import { BackPage } from '@domains/common/components/backPage'
export const CreateCircleForm = () => {
const validators = useCreateCircleFormValidators()
@@ -93,28 +83,10 @@ export const CreateCircleForm = () => {
>
-
-
-
-
-
-
+ />
diff --git a/apps/schools/domains/circle/components/createCircleForm/styles/styles.module.scss b/apps/schools/domains/circle/components/createCircleForm/styles/styles.module.scss
index 4ff4c485..c79c9600 100644
--- a/apps/schools/domains/circle/components/createCircleForm/styles/styles.module.scss
+++ b/apps/schools/domains/circle/components/createCircleForm/styles/styles.module.scss
@@ -30,13 +30,13 @@
width: 3%;
}
- .inputWithTooltipContainer {
+ .inputContainer {
display: flex;
flex-direction: row;
justify-content: unset;
}
- .inputWithTooltip {
+ .input {
width: 70%;
margin-right: 5px;
display: flex;
diff --git a/apps/schools/domains/circle/components/currentCircle/index.tsx b/apps/schools/domains/circle/components/currentCircle/index.tsx
index 48cbcb25..dd0398c2 100644
--- a/apps/schools/domains/circle/components/currentCircle/index.tsx
+++ b/apps/schools/domains/circle/components/currentCircle/index.tsx
@@ -25,10 +25,11 @@ import { getVarsForAddressColumn } from '@domains/common/utils/geo'
import { StatusesEnum } from '@domains/common/constants/Enums'
import { ErrorType } from '@store/commonApi'
import { AppRoutes, DynamicAppRoutes, DynamicRoutePath, RoutePath } from '@domains/common/constants/routerEnums'
+import { useQueryState } from 'next-usequerystate'
const CurrentCircle = () => {
const [isModalVisible, setIsModalVisible] = useState(false)
- const [searchRequestText, setSearchRequestText] = useState('')
+ const [searchRequestText, setSearchRequestText] = useQueryState('search')
const [mutation, isDeleteFinished] = useDeleteCircleMutation()
const uuid = getUuidFromUrl()
const router = useRouter()
@@ -40,7 +41,7 @@ const CurrentCircle = () => {
const { data: circle, error: circleError } = useGetCircleQuery({ circle_id: uuid[0] })
const { data: students, isLoading } = useGetCircleStudentsQuery({
circle_id: uuid[0],
- or_search: createSearchTextForRequest(searchRequestText, searchColumns),
+ or_search: createSearchTextForRequest(searchRequestText || '', searchColumns),
})
const { data: queryData } = useGetCurrentCircleQuery({ circle_id: uuid[0], organization_id: organizationId })
@@ -135,8 +136,8 @@ const CurrentCircle = () => {
isLoading={isLoading}
needNumbering={true}
searchFields={['student_name', 'student_phone', 'parent_names', 'parent_phones']}
- searchRequestText={searchRequestText}
- setSearchRequestText={setSearchRequestText}
+ searchRequestText={searchRequestText || ''}
+ setSearchRequestText={(text) => setSearchRequestText(text)}
/>