Use client

This commit is contained in:
MartinBraquet
2025-08-02 13:16:36 +02:00
parent f2d92772dc
commit f3b1de4b76
4 changed files with 17 additions and 17 deletions

View File

@@ -1,3 +1,5 @@
'use client';
import React from "react";
export default function LoadingSpinner() {

View File

@@ -1,20 +1,4 @@
export interface ProfileData {
id: string;
name: string;
image: string;
profile: {
location: string;
gender: string;
personalityType: string;
conflictStyle: string;
description: string;
contactInfo: string;
intellectualInterests: { interest?: { name?: string, id?: string } }[];
causeAreas: { causeArea?: { name?: string, id?: string } }[];
desiredConnections: { connection?: { name?: string, id?: string } }[];
promptAnswers: { prompt?: string; answer?: string, id?: string }[];
};
}
'use client';
export async function parseImage(img: string, setImage: any, batch = false) {
if (!img) {

View File

@@ -1,3 +1,5 @@
'use client';
import Image from "next/image";
import {pStyle} from "@/lib/client/constants";
import {useEffect, useState} from "react";
@@ -192,6 +194,16 @@ export function getProfile(url: string, header: any = null) {
)
}
{
userData?.profile?.introversion && (
<div>
<h2 className="text-sm font-medium text-gray-500 uppercase tracking-wider"> Introversion </h2>
< p
className="mt-1 capitalize"> {userData.profile.introversion}% </p>
</div>
)
}
{
userData?.profile?.personalityType && (
<div>

View File

@@ -1,3 +1,5 @@
'use client';
export interface ProfileData {
id: string;
name: string;