refactor: move all loyalty enums to new file
This commit is contained in:
@@ -11,7 +11,7 @@ import type {
|
||||
DynamicComponentProps,
|
||||
DynamicContentProps,
|
||||
} from "@/types/components/loyalty/blocks"
|
||||
import { LoyaltyComponentEnum } from "@/types/requests/loyaltyPage"
|
||||
import { LoyaltyComponentEnum } from "@/types/components/loyalty/enums"
|
||||
|
||||
function DynamicComponentBlock({ component }: DynamicComponentProps) {
|
||||
switch (component) {
|
||||
|
||||
@@ -4,7 +4,7 @@ import DynamicContentBlock from "@/components/Loyalty/Blocks/DynamicContent"
|
||||
import CardGrid from "./CardGrid"
|
||||
|
||||
import type { BlocksProps } from "@/types/components/loyalty/blocks"
|
||||
import { LoyaltyBlocksTypenameEnum } from "@/types/requests/loyaltyPage"
|
||||
import { LoyaltyBlocksTypenameEnum } from "@/types/components/loyalty/enums"
|
||||
|
||||
export function Blocks({ blocks }: BlocksProps) {
|
||||
return blocks.map((block) => {
|
||||
|
||||
Reference in New Issue
Block a user