feat(SW-245): Delete credit card

This commit is contained in:
Tobias Johansson
2024-08-13 10:20:59 +02:00
committed by Michael Zetterberg
parent 2af17ef4d8
commit e9a6499086
33 changed files with 603 additions and 208 deletions

View File

@@ -1,3 +0,0 @@
export interface CardProps extends React.HTMLAttributes<HTMLElement> {
tag?: "article" | "div" | "section"
}

View File

@@ -0,0 +1,9 @@
import type { CreditCard } from "@/types/user"
export type CreditCardRowProps = {
card: CreditCard
}
export type DeleteCreditCardConfirmationProps = {
card: CreditCard
}

View File

@@ -1,7 +1,7 @@
export interface RequestOptionsWithJSONBody
extends Omit<RequestInit, "body" | "method"> {
body: Record<string, unknown>
body?: Record<string, unknown>
}
export interface RequestOptionsWithOutBody
extends Omit<RequestInit, "body" | "method"> { }
extends Omit<RequestInit, "body" | "method"> {}

View File

@@ -1,6 +1,6 @@
import { z } from "zod"
import { getUserSchema } from "@/server/routers/user/output"
import { creditCardSchema, getUserSchema } from "@/server/routers/user/output"
type Journey = {
tag: string
@@ -28,3 +28,5 @@ export interface User extends z.infer<typeof getUserSchema> {
shortcuts: ShortcutLink[]
victories: Victory[]
}
export type CreditCard = z.output<typeof creditCardSchema>