Feat/SW-104 add card * feat: add api endpoints for adding and removing credit card * feat(SW-104): Added Sonner toast lib * feat(SW-104): Add route handlers for add card flow * feat(SW-104): Added link to route handler and trigger toast when query params from callback is set * feat(SW-104): Added translations for add card success toast * feat(SW-104): Refactored to use client request for initiate save card * fix(SW-104): Return proper status codes when initiating save card fails * fix(SW-104): remove delete card endpoint because it was added in SW-245 * fix(SW-104): remove console.log * fix(SW-104): Use api.post for save card request * fix(SW-104): move function declaration above export * fix(SW-104): handle response of save card and use Lang enum * fix(SW-104): added comment for why setTimeout is needed for toast and also removed lang prop * fix(SW-104): added type for AddCreditCardButton props * feat: add toasts * fix(SW-104): start using toasts from ToastHandler and fix problem with duplicate toasts * fix(SW-104): remove unnecessary wrapping div Approved-by: Michael Zetterberg
48 lines
1.2 KiB
TypeScript
48 lines
1.2 KiB
TypeScript
import { VariantProps } from "class-variance-authority"
|
|
|
|
import { iconVariants } from "@/components/Icons/variants"
|
|
|
|
export interface IconProps
|
|
extends Omit<React.SVGAttributes<HTMLOrSVGElement>, "color">,
|
|
VariantProps<typeof iconVariants> {}
|
|
|
|
export enum IconName {
|
|
Accessibility = "Accessibility",
|
|
AccountCircle = "AccountCircle",
|
|
ArrowRight = "ArrowRight",
|
|
Bar = "Bar",
|
|
Biking = "Biking",
|
|
Calendar = "Calendar",
|
|
Camera = "Camera",
|
|
Cellphone = "Cellphone",
|
|
Check = "Check",
|
|
CrossCircle = "CrossCircle",
|
|
CheckCircle = "CheckCircle",
|
|
ChevronDown = "ChevronDown",
|
|
ChevronRight = "ChevronRight",
|
|
Close = "Close",
|
|
CloseLarge = "CloseLarge",
|
|
Coffee = "Coffee",
|
|
Concierge = "Concierge",
|
|
DoorOpen = "DoorOpen",
|
|
ElectricBike = "ElectricBike",
|
|
Email = "Email",
|
|
Fitness = "Fitness",
|
|
Globe = "Globe",
|
|
House = "House",
|
|
Image = "Image",
|
|
InfoCircle = "InfoCircle",
|
|
Location = "Location",
|
|
Lock = "Lock",
|
|
Parking = "Parking",
|
|
Person = "Person",
|
|
People2 = "People2",
|
|
Pets = "Pets",
|
|
Phone = "Phone",
|
|
PlusCircle = "PlusCircle",
|
|
Restaurant = "Restaurant",
|
|
TshirtWash = "TshirtWash",
|
|
Wifi = "Wifi",
|
|
WarningTriangle = "WarningTriangle",
|
|
}
|