♻ Refactor Deposit and Register

🏷 Pick a part query types to simplify typing and fix
incompatible types
This commit is contained in:
Nikolai R Kristiansen committed 2022-02-14 10:19:34 +01:00
1 parent 8b0aaa287e
commit aa66694fd5
7 files changed
+197 -146

No files matched your search

+2 -2
View File
@@ -2,11 +2,11 @@ import { ReactComponent as PersonFill } from "bootstrap-icons/icons/person-fill.
import clsx from "clsx";
import React, { MouseEventHandler } from "react";
import { User } from "../types";
import { AllUsersQuery } from "../types";
import styles from "./UserCard.module.css";
type UserCardProps = {
user: User | null;
user: AllUsersQuery["allUsers"][0] | null;
onUser: MouseEventHandler;
active: boolean;
};