Skip to content

Commit

Permalink
[Fix] Hook exports (#32)
Browse files Browse the repository at this point in the history
* fix hook exports

* fix import

* fix import
  • Loading branch information
BrettCleary authored Nov 6, 2024
1 parent e814a22 commit da6cc30
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hyperplay/quests-ui",
"version": "0.0.33",
"version": "0.0.34",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions src/components/QuestDetailsWrapper/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {
QuestDetailsTranslations
} from '@hyperplay/ui'
import styles from './index.module.scss'
import useGetQuest from '../../hooks/useGetQuest'
import useGetSteamGame from '../../hooks/useGetSteamGame'
import { useGetQuest } from '../../hooks/useGetQuest'
import { useGetSteamGame } from '../../hooks/useGetSteamGame'
import { useTranslation } from 'react-i18next'
import { useAccount, useConnect, useSwitchChain, useWriteContract } from 'wagmi'
import {
Expand All @@ -22,7 +22,7 @@ import {
} from '@hyperplay/utils'
import { mintReward } from '../../helpers/mintReward'
import { resyncExternalTasks as resyncExternalTasksHelper } from '../../helpers/resyncExternalTask'
import useGetUserPlayStreak from '../../hooks/useGetUserPlayStreak'
import { useGetUserPlayStreak } from '../../hooks/useGetUserPlayStreak'
import { useMutation, useQueryClient } from '@tanstack/react-query'
import { getPlaystreakArgsFromQuestData } from '../../helpers/getPlaystreakArgsFromQuestData'
import { useGetRewards } from '../../hooks/useGetRewards'
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useCheckG7ConnectionStatus.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useQuery, useQueryClient } from '@tanstack/react-query'

export default function useCheckG7ConnectionStatus({
export function useCheckG7ConnectionStatus({
checkG7ConnectionStatus
}: {
checkG7ConnectionStatus: () => Promise<boolean>
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useGetQuest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { getGetQuestQueryKey } from '@/helpers/getQueryKeys'
import { Quest } from '@hyperplay/utils'
import { useQuery, useQueryClient } from '@tanstack/react-query'

export default function useGetQuest(
export function useGetQuest(
questId: number | null,
getQuest: (questId: number) => Promise<Quest>
) {
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useGetRewards.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useQuery, useQueryClient } from '@tanstack/react-query'
import useGetQuest from './useGetQuest'
import { useGetQuest } from './useGetQuest'
import { getDecimalNumberFromAmount, Quest } from '@hyperplay/utils'
import { getRewardCategory } from '../helpers/getRewardCategory'
import { useTranslation } from 'react-i18next'
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useGetSteamGame.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useQueries } from '@tanstack/react-query'

export default function useGetSteamGame(
export function useGetSteamGame(
steam_games: {
id: string
}[],
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useGetUserPlayStreak.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { getGetUserPlayStreakQueryKey } from '@/helpers/getQueryKeys'
import { UserPlayStreak } from '@hyperplay/utils'
import { useQuery, useQueryClient } from '@tanstack/react-query'

export default function useGetUserPlayStreak(
export function useGetUserPlayStreak(
questId: number | null,
getUserPlayStreak: (questId: number) => Promise<UserPlayStreak>
) {
Expand Down

0 comments on commit da6cc30

Please sign in to comment.