Skip to content

Commit

Permalink
fix: compatibility fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kpostekk committed Nov 23, 2023
1 parent 567b607 commit e9b54ae
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function MutationResponse(props: MutationResponseProps) {
)
}

if (props.mutation.isLoading) {
if (props.mutation.isPending) {
return (
<div className="alert alert-info">
<div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useMemo } from 'react'
import { Link } from 'react-router-dom'
import { ScheduleEvent } from '../../gql/graphql'
import { ScheduleEvent } from '../../gql/react-query'

export type ScheduleEventProps = {
event: Pick<
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/components/Timeline/Timeline.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { DateTime } from 'luxon'
import { useMemo } from 'react'
import { SimpleEventFragment } from '../../gql/graphql'
import { SimpleEventFragment } from '../../gql/react-query'
import { TimelineEvent } from './TimelineEvent'
import { TimelineLegends } from './TimelineLegens'

Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/components/Timeline/TimelineEvent.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import classNames from 'classnames'
import { Link } from 'react-router-dom'
import { ScheduleEvent } from '../../gql/graphql'
import { ScheduleEvent } from '../../gql/react-query'

export type TimelineEventProps = {
startsAt: Date
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/components/Timelines/Timelines.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { DateTime, Duration } from 'luxon'
import { useCallback, useEffect, useMemo, useState } from 'react'
import { Link } from 'react-router-dom'
import { useUpdate } from 'react-use'
import { SimpleEventFragment } from '../../gql/graphql'
import { SimpleEventFragment } from '../../gql/react-query'
import { useUserEventsQuery } from '../../gql/react-query'
import { Timeline } from '../Timeline/Timeline'
import { useGqlClient } from '../useGqlClient/useGqlClient'
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/pages/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { DateTime } from 'luxon'
import { useState } from 'react'
import { Link } from 'react-router-dom'
import { SearchInput } from '../components/SearchInput/SearchInput'
import { ScheduleEvent } from '../gql/graphql'
import { ScheduleEvent } from '../gql/react-query'
import { GeneralizedSearchQuery } from '../gql/react-query'

type ScheduleEventProps = {
Expand Down
4 changes: 2 additions & 2 deletions packages/app/src/pages/Settings/Groups.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default function SettingsGroups() {
})
}
>
{setGroupsMutation.isLoading ? (
{setGroupsMutation.isPending ? (
<HiCog className="animate-spin" />
) : (
'Zapisz'
Expand Down Expand Up @@ -173,7 +173,7 @@ export default function SettingsGroups() {
})
}
>
{setGroupsMutation.isLoading ? (
{setGroupsMutation.isPending ? (
<HiCog className="animate-spin" />
) : (
'Zapisz'
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/pages/Settings/ICS.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function ICSSettings() {
<p className="border-y-warning text-warning border-y-2 p-2 font-semibold italic">
Work in progress
</p>
{createSubscription.isLoading && (
{createSubscription.isPending && (
<p className="italic">Tworzenie subskrypcji...</p>
)}
{createSubscription.data ? (
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/states/auth.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { create } from 'zustand'
import { persist } from 'zustand/middleware'
import { LoginMutation } from '../gql/graphql'
import { LoginMutation } from '../gql/react-query'

export type AuthStore = {
auth?: LoginMutation['authGoogle']
Expand Down

0 comments on commit e9b54ae

Please sign in to comment.