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);
};
debugger;
return (
<>
<Head>
@@ -361,8 +362,9 @@ export default function Home() {
</div>
</form>
</div>
<div className="flex flex-col gap-6 w-48">
<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()}>
<div className="relative overflow-hidden h-48 w-48 rounded-full">
<div
@@ -382,6 +384,16 @@ export default function Home() {
</span>
<h6 className="font-normal text-base text-mti-gray-taupe">{USER_TYPE_LABELS[user.type]}</h6>
</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 className="flex flex-col gap-4 mt-8 mb-20">
<span className="text-lg font-bold">Bio</span>