feat: new "safe" procedure without unauth throwing

This commit is contained in:
Christel Westerberg
2024-07-08 14:53:48 +02:00
parent 17bc18ce2b
commit da343f45da
10 changed files with 117 additions and 69 deletions

View File

@@ -16,6 +16,6 @@ export type MainMenuProps = {
languageSwitcher: React.ReactNode | null
myPagesMobileDropdown: React.ReactNode | null
bookingHref: string
user: User | null
user: Pick<User, "firstName" | "lastName"> | null
lang: Lang
}

View File

@@ -7,9 +7,9 @@ import {
RteBlockContent,
} from "@/server/routers/contentstack/loyaltyPage/output"
import type { IntlFormatters } from "@formatjs/intl"
import { MembershipLevel } from "@/utils/user"
import { User } from "@/types/user"
import type { IntlFormatters } from "@formatjs/intl"
export type BlocksProps = {
blocks: Block[]
@@ -32,7 +32,7 @@ export type Content = { content: RteBlockContent["content"]["content"] }
type Benefit = { title: string }
export type OverviewTableProps = { user: User | null }
export type OverviewTableProps = { activeMembership: MembershipLevel | null }
export type Level = {
level: membershipLevels