Skip to content

Commit

Permalink
fix: links and event in profile
Browse files Browse the repository at this point in the history
  • Loading branch information
secona committed Nov 3, 2024
1 parent a061a91 commit 8e6852a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions modules/ProfilePageModules/sections/DetailProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ const Field = ({ label, values = [''], link }: FieldProps) => {
{values?.map((value) => (
<>
{link ? (
<Link className="text-md font-normal" href={value}>
<Link className="text-md font-normal break-all" href={value}>
{value}
</Link>
) : (
<p className="text-md font-normal">{value}</p>
<p className="text-md font-normal break-all">{value}</p>
)}
</>
))}
Expand Down Expand Up @@ -201,6 +201,14 @@ export const DetailProfile = () => {
{userData?.ticket && (
<>
<div className="mt-6 grid lg:grid-cols-2 md:gap-x-[188px] lg:gap-x-[50px] gap-y-6">
<Field label="Event yang Diikuti" values={[(() => {
switch (userData.ticket.eventName) {
case 'FULL_EXPERIENCE_1': return 'Full Experience Pagi';
case 'FULL_EXPERIENCE_2': return 'Full Experience Siang';
case 'ONLINE_EXPERIENCE': return 'Online Experience';
default: return '';
}
})()]} />
<Field label="Nama Mentor CS Connect" values={leadersString} />
<Field
label="Link Grup WhatsApp Mentoring CS Connect"
Expand Down

0 comments on commit 8e6852a

Please sign in to comment.