From b1f07b877cb2eca9bc7962743fb04edc960d0ff0 Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Mon, 27 Nov 2023 10:39:43 +0000 Subject: [PATCH] Added the type to the profile page --- src/pages/profile.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pages/profile.tsx b/src/pages/profile.tsx index 44386fab..dbb545cd 100644 --- a/src/pages/profile.tsx +++ b/src/pages/profile.tsx @@ -18,6 +18,7 @@ import CountrySelect from "@/components/Low/CountrySelect"; import {shouldRedirectHome} from "@/utils/navigation.disabled"; import moment from "moment"; import {BsCamera, BsCameraFill} from "react-icons/bs"; +import {USER_TYPE_LABELS} from "@/resources/user"; export const getServerSideProps = withIronSessionSsr(({req, res}) => { const user = req.session.user; @@ -334,6 +335,7 @@ export default function Home() { className="cursor-pointer text-mti-purple-light text-sm"> Change picture +
{USER_TYPE_LABELS[user.type]}