Add HouseManagement integration to AdminPanel and implement removeMemberAsAdmin feature in HouseService: Enhance admin capabilities with new section for house management and functionality to remove members from houses by admins, including points deduction logic.

This commit is contained in:
Julien Froidefond
2025-12-19 13:58:04 +01:00
parent a062f5573b
commit 82069c74bc
9 changed files with 774 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ interface AvatarProps {
className?: string;
borderClassName?: string;
fallbackText?: string;
style?: React.CSSProperties;
}
const sizeClasses = {
@@ -28,6 +29,7 @@ export default function Avatar({
className = "",
borderClassName = "",
fallbackText,
style,
}: AvatarProps) {
const [avatarError, setAvatarError] = useState(false);
const prevSrcRef = useRef<string | null | undefined>(undefined);
@@ -53,6 +55,7 @@ export default function Avatar({
style={{
backgroundColor: "var(--card)",
borderColor: "var(--border)",
...style,
}}
>
{displaySrc ? (