Skip to content

Commit

Permalink
move use-toast hook to hooks folder
Browse files Browse the repository at this point in the history
  • Loading branch information
dEdmishka committed Jan 24, 2024
1 parent 98dbef4 commit 91ee982
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/utils/api/hooks.ts → src/utils/api/hooks/hooks.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client'

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

export const useApi = <T extends Promise<any>>(
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/utils/api/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from './hooks'
export * from './hooks/hooks'
export * from './metacom'
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 { useToast } from '@/components/ui/use-toast'
import { URL_PRODUCT_API } from '@/constants'
import { useToast } from '@/utils/api/hooks/use-toast'
import { Metacom } from 'metacom'
import {
createContext,
Expand Down

0 comments on commit 91ee982

Please sign in to comment.