Added flag display for agents

This commit is contained in:
Joao Ramos
2023-12-23 14:51:28 +00:00
parent c37bb2691b
commit cc655fed6c

View File

@@ -159,6 +159,7 @@ export default function Home() {
setIsLoading(false); setIsLoading(false);
}; };
debugger;
return ( return (
<> <>
<Head> <Head>
@@ -361,8 +362,9 @@ export default function Home() {
</div> </div>
</form> </form>
</div> </div>
<div className="flex flex-col gap-6 w-48">
<div <div
className="flex flex-col gap-3 items-center w-48 h-fit cursor-pointer group" className="flex flex-col gap-3 items-center h-fit cursor-pointer group"
onClick={() => (profilePictureInput.current as any)?.click()}> onClick={() => (profilePictureInput.current as any)?.click()}>
<div className="relative overflow-hidden h-48 w-48 rounded-full"> <div className="relative overflow-hidden h-48 w-48 rounded-full">
<div <div
@@ -382,6 +384,16 @@ export default function Home() {
</span> </span>
<h6 className="font-normal text-base text-mti-gray-taupe">{USER_TYPE_LABELS[user.type]}</h6> <h6 className="font-normal text-base text-mti-gray-taupe">{USER_TYPE_LABELS[user.type]}</h6>
</div> </div>
{user.type === 'agent' && (
<div className="flag items-center h-fit">
<img
alt={user.demographicInformation?.country.toLowerCase() + '_flag'}
src={`https://flagcdn.com/w320/${user.demographicInformation?.country.toLowerCase()}.png`}
width="320"
/>
</div>
)}
</div>
</div> </div>
<div className="flex flex-col gap-4 mt-8 mb-20"> <div className="flex flex-col gap-4 mt-8 mb-20">
<span className="text-lg font-bold">Bio</span> <span className="text-lg font-bold">Bio</span>