Merged in chore/cleanup-unused (pull request #3461)
chore: Cleanup unused vars, exports, types * Cleanup some unused exports * Remove more * Readd CampaignPageIncludedHotelsRef * Add alias comment to procedure exports * Remove unused exports Approved-by: Linus Flood
This commit is contained in:
@@ -2,7 +2,7 @@ import { dt } from "@scandic-hotels/common/dt"
|
||||
|
||||
import type { IntlShape } from "react-intl"
|
||||
|
||||
export const DAYS_UNTIL_EXPIRY_WARNING = 30
|
||||
const DAYS_UNTIL_EXPIRY_WARNING = 30
|
||||
|
||||
/**
|
||||
* Get expiry label for points based on the expiry date.
|
||||
|
||||
@@ -11,7 +11,6 @@ export enum NodeNames {
|
||||
table = "table",
|
||||
tbody = "tbody",
|
||||
td = "td",
|
||||
text = "text",
|
||||
th = "th",
|
||||
tr = "tr",
|
||||
ul = "ul",
|
||||
|
||||
@@ -5,7 +5,7 @@ import FooterNavigation from "./Navigation"
|
||||
|
||||
import styles from "./footer.module.css"
|
||||
|
||||
export function preload() {
|
||||
function preload() {
|
||||
void getFooter()
|
||||
}
|
||||
|
||||
|
||||
@@ -7,11 +7,10 @@ import styles from "./topLink.module.css"
|
||||
import type { Header } from "@scandic-hotels/trpc/types/header"
|
||||
import type { ComponentProps } from "react"
|
||||
|
||||
export interface TopLinkProps
|
||||
extends Omit<
|
||||
ComponentProps<typeof HeaderLink>,
|
||||
"href" | "iconName" | "children"
|
||||
> {
|
||||
interface TopLinkProps extends Omit<
|
||||
ComponentProps<typeof HeaderLink>,
|
||||
"href" | "iconName" | "children"
|
||||
> {
|
||||
isLoggedIn: boolean
|
||||
topLink: Header["header"]["topLink"]
|
||||
iconSize?: number
|
||||
|
||||
@@ -7,7 +7,6 @@ export {
|
||||
ACCESS_GRANTED,
|
||||
accessBooking as default,
|
||||
ERROR_BAD_REQUEST,
|
||||
ERROR_FORBIDDEN,
|
||||
ERROR_NOT_FOUND,
|
||||
ERROR_UNAUTHORIZED,
|
||||
}
|
||||
@@ -66,11 +65,6 @@ const ERROR_UNAUTHORIZED = {
|
||||
status: 401,
|
||||
} as const
|
||||
|
||||
const ERROR_FORBIDDEN = {
|
||||
code: "FORBIDDEN",
|
||||
status: 403,
|
||||
} as const
|
||||
|
||||
const ERROR_NOT_FOUND = {
|
||||
code: "NOT_FOUND",
|
||||
status: 404,
|
||||
|
||||
@@ -96,7 +96,6 @@ Located at `utils/profilingConsent.ts`:
|
||||
- `storageKey(memberKey)` — Generate storage key
|
||||
- `readDismissed(memberKey)` — Check if modal was dismissed
|
||||
- `setDismissed(memberKey)` — Mark modal as dismissed
|
||||
- `clearDismissed(memberKey)` — Clear dismissal flag
|
||||
- `profilingConsentOpenEvent` — CustomEvent name for opening modal
|
||||
- `requestOpen()` — Dispatch event to open modal
|
||||
|
||||
|
||||
Reference in New Issue
Block a user