feat(SW-245): Delete credit card
This commit is contained in:
committed by
Michael Zetterberg
parent
2af17ef4d8
commit
e9a6499086
@@ -1,3 +0,0 @@
|
||||
export interface CardProps extends React.HTMLAttributes<HTMLElement> {
|
||||
tag?: "article" | "div" | "section"
|
||||
}
|
||||
9
types/components/myPages/myProfile/creditCards.ts
Normal file
9
types/components/myPages/myProfile/creditCards.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import type { CreditCard } from "@/types/user"
|
||||
|
||||
export type CreditCardRowProps = {
|
||||
card: CreditCard
|
||||
}
|
||||
|
||||
export type DeleteCreditCardConfirmationProps = {
|
||||
card: CreditCard
|
||||
}
|
||||
@@ -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"> {}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user