refactor: move all loyalty enums to new file

This commit is contained in:
Christel Westerberg
2024-05-02 11:40:22 +02:00
parent 4ef48bb0cd
commit 2bd757b29c
7 changed files with 9 additions and 9 deletions

View File

@@ -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) {

View File

@@ -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) => {

View File

@@ -6,8 +6,8 @@ import ContactRow from "./ContactRow"
import styles from "./contact.module.css"
import { JoinLoyaltyContactTypenameEnum } from "@/types/components/loyalty/enums"
import type { ContactProps } from "@/types/components/loyalty/sidebar"
import { JoinLoyaltyContactTypenameEnum } from "@/types/requests/loyaltyPage"
export default async function Contact({ contactBlock }: ContactProps) {
return (

View File

@@ -4,8 +4,8 @@ import JoinLoyaltyContact from "./JoinLoyalty"
import styles from "./sidebar.module.css"
import { SidebarTypenameEnum } from "@/types/components/loyalty/enums"
import { SidebarProps } from "@/types/components/loyalty/sidebar"
import { SidebarTypenameEnum } from "@/types/requests/loyaltyPage"
export default function SidebarLoyalty({ blocks }: SidebarProps) {
return (