From 59c0155bc4d14c79b59ba6b4a6b1937636fb5b24 Mon Sep 17 00:00:00 2001 From: Bernt Christian Egeland Date: Mon, 11 Sep 2023 07:52:05 +0000 Subject: [PATCH] UserExtended type --- src/components/modules/table/memberHeaderColumns.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/modules/table/memberHeaderColumns.tsx b/src/components/modules/table/memberHeaderColumns.tsx index 92b26a19..111db8b4 100644 --- a/src/components/modules/table/memberHeaderColumns.tsx +++ b/src/components/modules/table/memberHeaderColumns.tsx @@ -7,6 +7,7 @@ import { useTranslations } from "next-intl"; import TimeAgo from "react-timeago"; import { type ColumnDef, createColumnHelper, Row } from "@tanstack/react-table"; import { type NetworkMemberNotation, type MemberEntity } from "~/types/local/member"; +import { User, UserOptions } from "@prisma/client"; enum ConnectionStatus { Offline = 0, @@ -21,6 +22,12 @@ interface IProp { central: boolean; } +interface UserExtended extends User { + options: UserOptions & { + deAuthorizeWarning: boolean; + }; +} + const sortingMemberHex = ( rowA: Row, rowB: Row, @@ -60,7 +67,7 @@ const sortingIpaddress = ( export const MemberHeaderColumns = ({ nwid, central = false }: IProp) => { const t = useTranslations(); const { callModal } = useModalStore((state) => state); - const { data: me } = api.auth.me.useQuery(); + const { data: me } = api.auth.me.useQuery(); const { data: networkById, refetch: refetchNetworkById } = api.network.getNetworkById.useQuery( {