Merged in feature-country-manager-flag (pull request #11)

Feature country manager flag

Approved-by: Tiago Ribeiro
This commit is contained in:
João Ramos
2023-12-26 20:23:56 +00:00
committed by Tiago Ribeiro

View File

@@ -361,8 +361,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 +383,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>