diff --git a/mock-relying-party-ui/public/images/menu_icon.png b/mock-relying-party-ui/public/images/menu_icon.png new file mode 100644 index 00000000..dcb737e3 Binary files /dev/null and b/mock-relying-party-ui/public/images/menu_icon.png differ diff --git a/mock-relying-party-ui/public/images/signout_icon.png b/mock-relying-party-ui/public/images/signout_icon.png new file mode 100644 index 00000000..a4cd06b1 Binary files /dev/null and b/mock-relying-party-ui/public/images/signout_icon.png differ diff --git a/mock-relying-party-ui/src/components/ProfileUI.js b/mock-relying-party-ui/src/components/ProfileUI.js index cbfc3f1e..d0f243d9 100644 --- a/mock-relying-party-ui/src/components/ProfileUI.js +++ b/mock-relying-party-ui/src/components/ProfileUI.js @@ -42,132 +42,130 @@ export default function ProfileUI({ let el = ( <> -
{t("current_medication")} ({medicationCount})
+{t("current_medication")} ({medicationCount})
-- - {t(data["tabletName"])} -
-- {t(data["dailyDosage"])} -
-+ + {t(data["tabletName"])} +
++ {t(data["dailyDosage"])} +
{t("next_appointment")}
-- {i18n.t(formattedDate)} -
-- - {data["time"]} -
-- {t(data["doctorName"])} -
-- {t(data["department"])} -
-{t("next_appointment")}
++ {i18n.t(formattedDate)} +
++ + {data["time"]} +
++ {t(data["doctorName"])} +
++ {t(data["department"])} +
+ {t("new_messages")} ({messagesCount}) +
+ {messagesInfo?.messages?.map((message, index) => { + const pastDate = new Date( + currentDate.getTime() - message["days"] * 24 * 60 * 60 * 1000 + ); + const formattedDate = new Intl.DateTimeFormat(i18n.language, { dateStyle: 'full' }).format(pastDate); + return ( ++ {t(message["doctorName"])} +
++ {i18n.t(formattedDate)} +
+ ++ {t("hi")} {userInfo?.name} , {t(message["message"])} +
+{t("vaccinations")}
+
+ {t("vaccination_details")} + |
+ + {t("date")} + | ++ {t("vaccination_center")} + | ++ {t("total_cost")} + | +
---|---|---|---|
+ {t(item["vaccinationName"])} + |
+
+ {pastDate.toLocaleDateString()} + |
+
+ {t(item["vaccinationCenter"])} + |
+
+ {item["totalCost"]} + |
+