Skip to content

Commit f446f73

Browse files
committed
fix typescript issues
1 parent 964eff2 commit f446f73

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

app/profile/[login]/components/layout-left-column.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { FC, ReactNode } from 'react';
77
import { Avatar, AvatarImage } from '@/components/ui/avatar';
88
import { Button } from '@/components/ui/button';
99
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip';
10-
import { UserQuery } from '@/types/generated/graphql';
10+
import { ProfileSummaryQuery } from '@/types/generated/graphql';
1111
import { ensureLinkProtocol } from '@/utils/ensure-link-protocol';
1212

1313
import { FetchUserButtonForProfilePage } from './fetch-user-button';
@@ -24,7 +24,7 @@ import {
2424
import { getSocialIcon } from '../utils/get-social-icon';
2525

2626
type LayoutLeftColumnProps = Readonly<{
27-
user: UserQuery['user'];
27+
user: ProfileSummaryQuery['user'];
2828
children: ReactNode;
2929
className?: string;
3030
}>;

app/profile/[login]/components/ranks-overview.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { FC } from 'react';
22

33
import { Link } from '@/components/link/link';
44
import { RankNumber } from '@/components/rank-number/rank-number';
5-
import { UserQuery } from '@/types/generated/graphql';
5+
import { ProfileSummaryQuery } from '@/types/generated/graphql';
66

77
import { ProfileCard, ProfileCardActions, ProfileCardContent, ProfileCardHeader } from './profile-card';
88

99
type RanksOverviewProps = {
10-
ranksData: NonNullable<UserQuery['user']>['rankGlobal'];
10+
ranksData: NonNullable<ProfileSummaryQuery['user']>['rankGlobal'];
1111
login: string;
1212
};
1313

app/profile/[login]/components/repositories-overiview.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { FC } from 'react';
22

33
import { Link } from '@/components/link/link';
4-
import { UserQuery } from '@/types/generated/graphql';
4+
import { ProfileSummaryQuery } from '@/types/generated/graphql';
55

66
import { ProfileCard, ProfileCardActions, ProfileCardContent, ProfileCardHeader } from './profile-card';
77

8-
type User = NonNullable<UserQuery['user']>;
8+
type User = NonNullable<ProfileSummaryQuery['user']>;
99

1010
type RepositoriesOverviewProps = {
1111
topRepoStars?: number;

types/profile-timeline.types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { UserQuery } from './generated/graphql';
1+
import { ProfileSummaryQuery } from './generated/graphql';
22

3-
export type SocialAccountChangeItem = NonNullable<UserQuery['user']>['socialAccounts'];
3+
export type SocialAccountChangeItem = NonNullable<ProfileSummaryQuery['user']>['socialAccounts'];
44

55
export type ChangeItemType = string | number | boolean | SocialAccountChangeItem;
66

0 commit comments

Comments
 (0)