Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
levil664 committed Jul 19, 2024
1 parent 757f37a commit 74750c8
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions apps/schools/domains/circle/components/circleList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ import EmptyWrapper from '@domains/common/components/containers/EmptyWrapper'
import { HighlightText } from '@domains/common/components/table/forming'
import { getVarsForAddressColumn } from '@domains/common/utils/geo'
import { AppRoutes, RoutePath } from '@domains/common/constants/routerEnums'
import { useQueryState } from "next-usequerystate";
import { useQueryState } from 'next-usequerystate'

export function CircleList() {
const [searchRequestText, setSearchRequestText] = useQueryState('search')
const { organizationId } = useOrganization()

const { data: circles, isFetching: isFetching } = useGetAllCirclesQuery({
organization_id: organizationId,
or_search: createSearchTextForRequest(searchRequestText || '', searchStudentsColumns),
organization_id: organizationId,
or_search: createSearchTextForRequest(searchRequestText || '', searchStudentsColumns),
})

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ 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";
import { useQueryState } from 'next-usequerystate'

const CurrentCircle = () => {
const [isModalVisible, setIsModalVisible] = useState(false)
Expand Down
2 changes: 1 addition & 1 deletion apps/schools/domains/common/components/table/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { typeTable } from '@domains/common/constants/Table'
import { CustomTableProps } from '@domains/common/components/table/interfaces'
import { calculateAverageWidth } from '@domains/common/utils/calculateAverageWidth'
import { ColumnType } from 'antd/lib/table/interface'
import { useQueryState } from "next-usequerystate";
import { useQueryState } from 'next-usequerystate'

export const Table = <RowType, DataItemType>(props: CustomTableProps<RowType, DataItemType>) => {
const {
Expand Down
2 changes: 1 addition & 1 deletion apps/schools/domains/common/components/table/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ReturnedData } from '@domains/common/redux/interfaces'
import { TableProps } from 'antd'
import { ColumnFilterItem } from 'antd/lib/table/interface'
import { Key } from 'antd/es/table/interface'
import {Options} from "next-usequerystate";
import { Options } from 'next-usequerystate'

export interface CustomFieldsProps {
[key: string]: React.FC<{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ import { useQueryState } from 'next-usequerystate'
import { scrollToTop } from '@domains/common/utils/scrollInDirection'

export function EmployeeList() {
const [searchRequest, setSearchRequest] = useQueryState('search')
const [searchRequest, setSearchRequest] = useQueryState('search')
const { organizationId } = useOrganization()

const { data, isFetching } = useGetAllEmployeesQuery({
organization: organizationId,
or_search: createSearchTextForRequest(searchRequest || '', searchColumns),
or_search: createSearchTextForRequest(searchRequest || '', searchColumns),
})

return (
Expand Down
2 changes: 1 addition & 1 deletion apps/schools/domains/query/components/queryList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export function QueryList() {

const { data: queries, isFetching: isQueriesFetching } = useGetAllJoinCircleQueriesQuery({
circle__organization__id: organizationId,
or_search: createSearchTextForRequest(searchRequest || '', searchStudentsColumns)
or_search: createSearchTextForRequest(searchRequest || '', searchStudentsColumns),
})

const countAllQueries = useMemo(
Expand Down
4 changes: 2 additions & 2 deletions apps/schools/domains/student/components/studentList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ import { scrollToTop } from '@domains/common/utils/scrollInDirection'
import { handlePaginationChange } from '@domains/common/handlers/paginationChange'
import { calculateResults } from '@domains/student/handlers/resultsCalculate'
import { getTotalPages } from '@domains/common/utils/getTotalPages'
import { useQueryState } from "next-usequerystate"
import { useQueryState } from 'next-usequerystate'

export function StudentList() {
const [searchRequestText, setSearchRequestText] = useQueryState('search')
const [searchRequestText, setSearchRequestText] = useQueryState('search')
const { organizationId } = useOrganization()

const { data: invites, isLoading: isLoadingInvites } = useGetAllStudentInvitationsQuery({
Expand Down
8 changes: 4 additions & 4 deletions apps/schools/domains/ticket/components/ticketList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ type HandleChange = (
) => void

export function TicketList() {
const [inputText, setInputText] = useState('')
const [isTableLoading, setIsTableLoading] = useState(false)
const { organizationId } = useOrganization()
const [searchRequest, setSearchRequest] = useQueryState('search')
const [inputText, setInputText] = useState('')
const [isTableLoading, setIsTableLoading] = useState(false)
const { organizationId } = useOrganization()
const [searchRequest, setSearchRequest] = useQueryState('search')

const [statuses, setStatuses] = useQueryState(
'statuses',
Expand Down

0 comments on commit 74750c8

Please sign in to comment.