Skip to content

Commit

Permalink
Merge pull request #6482 from Lezek123/dev-tips-and-5.5-update
Browse files Browse the repository at this point in the history
💸 Tips (+ update dev to 5.5)
  • Loading branch information
Lezek123 authored Dec 17, 2024
2 parents 3fe44fd + 33157a8 commit d682a21
Show file tree
Hide file tree
Showing 59 changed files with 1,449 additions and 166 deletions.
11 changes: 11 additions & 0 deletions packages/atlas/src/api/hooks/comments.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { QueryHookOptions } from '@apollo/client'
import { omit } from 'lodash-es'
import { useMemo } from 'react'

import {
Expand All @@ -13,6 +14,7 @@ import {
useGetCommentEditsQuery,
useGetCommentQuery,
useGetCommentRepliesConnectionQuery,
useGetTipTiersQuery,
useGetUserCommentsAndVideoCommentsConnectionQuery,
useGetUserCommentsReactionsQuery,
} from '@/api/queries/__generated__/comments.generated'
Expand Down Expand Up @@ -129,3 +131,12 @@ export const useCommentEdits = (
...rest,
}
}

export const useGetTipTiers = () => {
const { data, ...rest } = useGetTipTiersQuery()

return {
tipTiers: data ? omit(data.tipTiers, ['__typename']) : undefined,
...rest,
}
}
3 changes: 3 additions & 0 deletions packages/atlas/src/api/hooks/nfts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ export const useFeaturedNftsVideos = () => {
variables: {
limit: 10,
orderBy: [OwnedNftOrderByInput.VideoViewsNumDesc],
where: {
isFeatured_eq: true,
},
},
})

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d682a21

Please sign in to comment.