feat: add card skins support
This commit is contained in:
@@ -130,6 +130,8 @@ export type IdTag = {
|
||||
parentIdTag: string | null;
|
||||
userId: string | null;
|
||||
balance: number;
|
||||
cardLayout: "center" | "around" | null;
|
||||
cardSkin: "line" | "circles" | "glow" | "vip" | "redeye" | null;
|
||||
createdAt: string;
|
||||
};
|
||||
|
||||
@@ -239,6 +241,8 @@ export const api = {
|
||||
parentIdTag?: string;
|
||||
userId?: string | null;
|
||||
balance?: number;
|
||||
cardLayout?: "center" | "around";
|
||||
cardSkin?: "line" | "circles" | "glow" | "vip" | "redeye";
|
||||
}) => apiFetch<IdTag>("/api/id-tags", { method: "POST", body: JSON.stringify(data) }),
|
||||
update: (
|
||||
idTag: string,
|
||||
@@ -248,6 +252,8 @@ export const api = {
|
||||
parentIdTag?: string | null;
|
||||
userId?: string | null;
|
||||
balance?: number;
|
||||
cardLayout?: "center" | "around" | null;
|
||||
cardSkin?: "line" | "circles" | "glow" | "vip" | "redeye" | null;
|
||||
},
|
||||
) => apiFetch<IdTag>(`/api/id-tags/${idTag}`, { method: "PATCH", body: JSON.stringify(data) }),
|
||||
delete: (idTag: string) =>
|
||||
|
||||
Reference in New Issue
Block a user