Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Remove barrel files from services collection (part 3) #3780

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove index from services/toast
  • Loading branch information
nicholas-codecov committed Feb 26, 2025
commit aed464bde58f181d512e0069e61abe0c1f9bbae8
2 changes: 1 addition & 1 deletion src/pages/OwnerPage/OwnerPage.jsx
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ import { useOwnerPageData } from 'pages/OwnerPage/hooks'
import { useAccountDetails } from 'services/account/useAccountDetails'
import { useSentryToken } from 'services/account/useSentryToken'
import { useLocationParams } from 'services/navigation/useLocationParams'
import { renderToast } from 'services/toast'
import { renderToast } from 'services/toast/renderToast'
import { ActiveContext } from 'shared/context'
import ListRepo from 'shared/ListRepo'

Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ import { useParams } from 'react-router'
import { CachedBundlesQueryOpts } from 'services/bundleAnalysis/CachedBundlesQueryOpts'
import { useUpdateBundleCache } from 'services/bundleAnalysis/useUpdateBundleCache'
import { useRepoOverview } from 'services/repo'
import { renderToast } from 'services/toast'
import { renderToast } from 'services/toast/renderToast'
import { cn } from 'shared/utils/cn'
import { Alert } from 'ui/Alert'
import Button from 'ui/Button'
2 changes: 1 addition & 1 deletion src/services/repo/useActivateMeasurements.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useMutation, useQueryClient } from '@tanstack/react-query'
import z from 'zod'

import { renderToast } from 'services/toast'
import { renderToast } from 'services/toast/renderToast'
import Api from 'shared/api'
import { rejectNetworkError } from 'shared/api/rejectNetworkError'

1 change: 0 additions & 1 deletion src/services/toast/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/services/trial/useStartTrial.ts
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ import { useParams } from 'react-router-dom'
import { z } from 'zod'

import { LOCAL_STORAGE_USER_STARTED_TRIAL_KEY } from 'pages/OwnerPage/OwnerPage'
import { renderToast } from 'services/toast'
import { renderToast } from 'services/toast/renderToast'
import Api from 'shared/api'
import { useRedirect } from 'shared/useRedirect'