fix(LOY-10): move types to type folder
This commit is contained in:
@@ -1,11 +1,6 @@
|
||||
import { mapRewardToIcon } from "./data"
|
||||
|
||||
import { IconProps } from "@/types/components/icon"
|
||||
|
||||
interface RewardIconProps extends IconProps {
|
||||
rewardId: string
|
||||
size?: "small" | "medium" | "large"
|
||||
}
|
||||
import { RewardIconProps } from "@/types/components/myPages/rewards"
|
||||
|
||||
// Original SVG aspect ratio is 358:202 (≈1.77:1)
|
||||
const sizeMap = {
|
||||
|
||||
6
types/components/myPages/rewards.ts
Normal file
6
types/components/myPages/rewards.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import type { IconProps } from "@/types/components/icon"
|
||||
|
||||
export interface RewardIconProps extends IconProps {
|
||||
rewardId: string
|
||||
size?: "small" | "medium" | "large"
|
||||
}
|
||||
Reference in New Issue
Block a user