- {activeHouse.color}
+ {member.role !== 'owner' &&
+ session.user.id !== member.user.id && (
+
+ )}
diff --git a/src/components/house/delete-house-dialog.tsx b/src/components/house/delete-house-dialog.tsx
index c8f6905..3139bcd 100644
--- a/src/components/house/delete-house-dialog.tsx
+++ b/src/components/house/delete-house-dialog.tsx
@@ -31,6 +31,7 @@ import parse from 'html-react-parser';
import { useState } from 'react';
import { toast } from 'sonner';
import RoleBadge from '../avatar/role-badge';
+import { Skeleton } from '../ui/skeleton';
type DeleteHouseProps = {
data: HouseWithMembers;
@@ -69,93 +70,93 @@ const DeleteHouseAction = ({ data }: DeleteHouseProps) => {
deleteHouseMutation({ data });
};
- if (isLoading) return null;
-
- if (hasPermission) {
- return (
-