Added the type to the profile page

This commit is contained in:
Tiago Ribeiro
2023-11-27 10:39:43 +00:00
parent 70611305a7
commit b1f07b877c

View File

@@ -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
</span>
<h6 className="font-normal text-base text-mti-gray-taupe">{USER_TYPE_LABELS[user.type]}</h6>
</div>
</div>
<div className="flex flex-col gap-4 mt-8 mb-20">