File tree Expand file tree Collapse file tree 10 files changed +10
-13
lines changed Expand file tree Collapse file tree 10 files changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ type HomePageProps = {
24
24
}
25
25
26
26
const HomePage = ( { preloadedQuery, cookies } : HomePageProps ) => {
27
- const environment = getCurrentEnvironment ( cookies )
27
+ const environment = getCurrentEnvironment ( cookies ) as Environment
28
28
const queryRef = useSerializablePreloadedQuery ( environment , preloadedQuery )
29
29
30
30
return (
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export default function IssuesContainer({
42
42
preloadedQuery,
43
43
cookies,
44
44
} : IssuesProps ) {
45
- const environment = getCurrentEnvironment ( cookies )
45
+ const environment = getCurrentEnvironment ( cookies ) as Environment
46
46
const queryRef = useSerializablePreloadedQuery ( environment , preloadedQuery )
47
47
return (
48
48
< RelayEnvironmentProvider environment = { environment as Environment } >
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ export default function StoryContainer({
65
65
preloadedQuery,
66
66
cookies,
67
67
} : StoryProps ) {
68
- const environment = getCurrentEnvironment ( cookies )
68
+ const environment = getCurrentEnvironment ( cookies ) as Environment
69
69
const queryRef = useSerializablePreloadedQuery ( environment , preloadedQuery )
70
70
return (
71
71
< RelayEnvironmentProvider environment = { environment as Environment } >
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ type StoryProps = {
37
37
}
38
38
39
39
export default function UserContainer ( { preloadedQuery, cookies } : StoryProps ) {
40
- const environment = getCurrentEnvironment ( cookies )
40
+ const environment = getCurrentEnvironment ( cookies ) as Environment
41
41
const queryRef = useSerializablePreloadedQuery ( environment , preloadedQuery )
42
42
return (
43
43
< RelayEnvironmentProvider environment = { environment as Environment } >
Original file line number Diff line number Diff line change 101
101
},
102
102
"resolutions" : {
103
103
"webpack" : " ^5"
104
- },
105
- "engines" : {
106
- "node" : " 17.5.0"
107
104
}
108
105
}
Original file line number Diff line number Diff line change 1
1
import { graphql , useFragment } from 'react-relay'
2
- import { Badge_node$key } from '../../../queries/ __generated__/Badge_node.graphql'
2
+ import { Badge_node$key } from '__generated__/Badge_node.graphql'
3
3
import { getCompactNumber } from '../../../utils/formatNumber'
4
4
import BadgeIcon , { LanguageName } from './BadgeIcon'
5
5
import Hexagon , { hexagonBackground } from './Hexagon'
Original file line number Diff line number Diff line change 1
1
import { graphql , usePaginationFragment } from 'react-relay'
2
2
import Button from 'src/components/Button'
3
- import { BadgeList_user$key } from '../../../queries/ __generated__/BadgeList_user.graphql'
3
+ import { BadgeList_user$key } from '__generated__/BadgeList_user.graphql'
4
4
import Badge from './Badge'
5
5
6
6
const BadgeList = ( { user } : { user : BadgeList_user$key } ) => {
Original file line number Diff line number Diff line change 1
1
import { graphql , useFragment } from 'react-relay'
2
2
import BadgeList from './Badges/BadgeList'
3
- import type { UserDetails_user$key } from '../../queries/__generated__/UserDetails_user.graphql'
4
3
import Bio from './Bio'
5
4
import { GoIssueOpened } from '@react-icons/all-files/go/GoIssueOpened'
6
5
import { GoGitPullRequest } from '@react-icons/all-files/go/GoGitPullRequest'
6
+ import { UserDetails_user$key } from '__generated__/UserDetails_user.graphql'
7
7
8
8
type Props = {
9
9
user : UserDetails_user$key
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ export default function StoryEditor({
81
81
body,
82
82
requestCookie,
83
83
} : EditorProps ) {
84
- const environment = getCurrentEnvironment ( requestCookie ?? '' )
84
+ const environment = getCurrentEnvironment ( requestCookie ?? '' ) as Environment
85
85
return (
86
86
< RelayEnvironmentProvider environment = { environment as Environment } >
87
87
< Editor editable = { editable } body = { body } />
Original file line number Diff line number Diff line change 2
2
// Relay's PreloadedQuery.
3
3
4
4
import { useMemo } from 'react'
5
- import { PreloadedQuery , PreloadFetchPolicy } from 'react-relay'
5
+ import { PreloadedQuery , PreloadFetchPolicy , Environment } from 'react-relay'
6
6
import { ConcreteRequest , IEnvironment , OperationType } from 'relay-runtime'
7
7
import { responseCache } from './environment'
8
8
import { SerializablePreloadedQuery } from './loadSerializableQuery'
@@ -17,7 +17,7 @@ export default function useSerializablePreloadedQuery<
17
17
TRequest extends ConcreteRequest ,
18
18
TQuery extends OperationType
19
19
> (
20
- environment : IEnvironment ,
20
+ environment : Environment ,
21
21
preloadQuery : SerializablePreloadedQuery < TRequest , TQuery > ,
22
22
fetchPolicy : PreloadFetchPolicy = 'store-or-network'
23
23
) : PreloadedQuery < TQuery > {
You can’t perform that action at this time.
0 commit comments