Merged in feat/LOY-391-my-points-transactions-table-design (pull request #3415)
Feat/LOY-391 my points transactions table design * feat(LOY-391): Added new design to point transaction table * fix(LOY-391): rebase fix * fix(LOY-391): fix * fix(LOY-391): fix * fix(LOY-391): fixed sticky header etc. * feat(LOY-391): added focus on the newest loaded item in the list * fix(LOY-391): cleaned up * fix(LOY-391): style fix * fix(LOY-391): fixed PR-comments, types, removed the old files for earn and burn table * fix(LOY-391): fixed PR-comments * feat(LOY-391): added useCallback so scrolling is avoided when clicking see all on expiring points Approved-by: Anton Gunnarsson Approved-by: Matilda Landström
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
import type { VariantProps } from "class-variance-authority"
|
||||
|
||||
import type { awardPointsVariants } from "@/components/Blocks/DynamicContent/Points/EarnAndBurn/AwardPoints/awardPointsVariants"
|
||||
import type { awardPointsVariants } from "@/components/Blocks/DynamicContent/Points/ExpiringPoints/AwardPoints/awardPointsVariants"
|
||||
import type { UserQueryRouter } from "../user"
|
||||
|
||||
type TransactionResponse = Awaited<
|
||||
ReturnType<UserQueryRouter["transaction"]["friendTransactions"]>
|
||||
>
|
||||
type TransactionsNonNullResponseObject = NonNullable<TransactionResponse>
|
||||
export type Transactions =
|
||||
NonNullable<TransactionsNonNullResponseObject>["data"]["transactions"]
|
||||
export type Transaction = Transactions[number]
|
||||
export type Transactions = TransactionsNonNullResponseObject
|
||||
export type Transaction = Transactions["data"][number]
|
||||
|
||||
export type AwardPointsVariantProps = VariantProps<typeof awardPointsVariants>
|
||||
|
||||
Reference in New Issue
Block a user