fix(LOY-10): move types to type folder
This commit is contained in:
@@ -1,11 +1,6 @@
|
|||||||
import { mapRewardToIcon } from "./data"
|
import { mapRewardToIcon } from "./data"
|
||||||
|
|
||||||
import { IconProps } from "@/types/components/icon"
|
import { RewardIconProps } from "@/types/components/myPages/rewards"
|
||||||
|
|
||||||
interface RewardIconProps extends IconProps {
|
|
||||||
rewardId: string
|
|
||||||
size?: "small" | "medium" | "large"
|
|
||||||
}
|
|
||||||
|
|
||||||
// Original SVG aspect ratio is 358:202 (≈1.77:1)
|
// Original SVG aspect ratio is 358:202 (≈1.77:1)
|
||||||
const sizeMap = {
|
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