chore: remove unused filter modal
remove old cms model refactor reward types
This commit is contained in:
@@ -19,10 +19,7 @@ import Redeem from "../Redeem"
|
||||
import styles from "./current.module.css"
|
||||
|
||||
import type { CurrentRewardsClientProps } from "@/types/components/myPages/myPage/accountPage"
|
||||
import {
|
||||
type Reward,
|
||||
type RewardWithRedeem,
|
||||
} from "@/types/components/myPages/rewards"
|
||||
import type { Reward } from "@/types/components/myPages/rewards"
|
||||
|
||||
export default function ClientCurrentRewards({
|
||||
rewards: initialData,
|
||||
@@ -34,7 +31,7 @@ export default function ClientCurrentRewards({
|
||||
const [currentPage, setCurrentPage] = useState(1)
|
||||
|
||||
const { data } = trpc.contentstack.rewards.current.useQuery<{
|
||||
rewards: (Reward | RewardWithRedeem)[]
|
||||
rewards: Reward[]
|
||||
}>(
|
||||
{
|
||||
lang,
|
||||
@@ -70,7 +67,7 @@ export default function ClientCurrentRewards({
|
||||
<div ref={containerRef} className={styles.container}>
|
||||
<Grids.Stackable>
|
||||
{paginatedRewards.map((reward, idx) => {
|
||||
const earliestExpirationDate = getEarliestExpirationDate(reward.data)
|
||||
const earliestExpirationDate = getEarliestExpirationDate(reward)
|
||||
|
||||
return (
|
||||
<article className={styles.card} key={`${reward.reward_id}-${idx}`}>
|
||||
|
||||
Reference in New Issue
Block a user