Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Apr 26, 2024
1 parent f1e82ca commit 94f2d2e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
import Link from 'next/link'
import { useQuery } from 'urql'

import { ListGithubRepositoryProvidersQuery, RepositoryProviderStatus } from '@/lib/gql/generates/graphql'
import {
ListGithubRepositoryProvidersQuery,
RepositoryProviderStatus
} from '@/lib/gql/generates/graphql'
import { listGithubRepositoryProviders } from '@/lib/tabby/query'
import { buttonVariants } from '@/components/ui/button'
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'
Expand Down Expand Up @@ -65,9 +68,7 @@ const GitProvidersList: React.FC<GitProvidersTableProps> = ({ data }) => {
<span className="w-[30%] shrink-0 text-muted-foreground">
Status
</span>
<span>
{toStatusMessage(item.node.status)}
</span>
<span>{toStatusMessage(item.node.status)}</span>
</div>
</CardContent>
</Card>
Expand All @@ -80,11 +81,11 @@ const GitProvidersList: React.FC<GitProvidersTableProps> = ({ data }) => {
function toStatusMessage(status: RepositoryProviderStatus) {
switch (status) {
case RepositoryProviderStatus.Ready:
return "Ready";
return 'Ready'
case RepositoryProviderStatus.Error:
return "Processing error. Please check if the access token is still valid"
return 'Processing error. Please check if the access token is still valid'
case RepositoryProviderStatus.Pending:
return "Awaiting the next data synchronization"
return 'Awaiting the next data synchronization'
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { useRouter, useSearchParams } from 'next/navigation'
import { useQuery } from 'urql'

import { DEFAULT_PAGE_SIZE } from '@/lib/constants'
import { RepositoryProviderStatus } from '@/lib/gql/generates/graphql'
import { QueryResponseData, QueryVariables, useMutation } from '@/lib/tabby/gql'
import {
listGithubRepositories,
Expand Down Expand Up @@ -36,7 +37,6 @@ import { ListSkeleton } from '@/components/skeleton'
import { updateGithubProvidedRepositoryActiveMutation } from '../query'
import LinkRepositoryForm from './new-repository-form'
import { UpdateProviderForm } from './provider-detail-form'
import { RepositoryProviderStatus } from '@/lib/gql/generates/graphql'

type GithubRepositories = QueryResponseData<
typeof listGithubRepositories
Expand Down

0 comments on commit 94f2d2e

Please sign in to comment.