Skip to content

Commit

Permalink
fix hooks imports according to hooks index file
Browse files Browse the repository at this point in the history
  • Loading branch information
dEdmishka committed Jan 24, 2024
1 parent 9aeb1a4 commit 1100dca
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
'use client'

import { Button } from '@/components/ui/button'
import { useApi } from '@/hooks/use-api'
import { useToast } from '@/hooks/use-toast'
import { useApi, useToast } from '@/hooks'
import { useApiContext } from '@/utils'

const Home = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/toaster.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
ToastTitle,
ToastViewport,
} from '@/components/ui/toast'
import { useToast } from '@/hooks/use-toast'
import { useToast } from '@/hooks'

export function Toaster() {
const { toasts } = useToast()
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/use-api.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client'

import { useToast } from '@/hooks/use-toast'
import { useToast } from '@/hooks'
import { useCallback, useEffect, useRef, useState } from 'react'

export const useApi = <T extends Promise<any>>(
Expand Down
2 changes: 1 addition & 1 deletion src/utils/api/metacom.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client'

import { URL_PRODUCT_API } from '@/constants'
import { useToast } from '@/hooks/use-toast'
import { useToast } from '@/hooks'
import { Metacom } from 'metacom'
import {
createContext,
Expand Down

0 comments on commit 1100dca

Please sign in to comment.