Scheduling infrastructure for absolutely everyone.
fix: Update component order, props for Link in user-public-view (#15882)
Trillium S2f7cc05cad96
diff --git a/apps/web/modules/users/views/users-public-view.tsx b/apps/web/modules/users/views/users-public-view.tsxindex 742c128ea1d..121af1b4d52 100644--- a/apps/web/modules/users/views/users-public-view.tsx+++ b/apps/web/modules/users/views/users-public-view.tsx@@ -121,36 +121,34 @@ export function UserPage(props: InferGetServerSidePropsType<typeof getServerSideclassName={classNames("rounded-md ", !isEventListEmpty && "border-subtle border")}data-testid="event-types">{eventTypes.map((type) => (- <div+ <Linkkey={type.id}style={{ display: "flex", ...eventTypeListItemEmbedStyles }}- className="bg-default border-subtle dark:bg-muted dark:hover:bg-emphasis hover:bg-muted group relative border-b transition first:rounded-t-md last:rounded-b-md last:border-b-0">+ prefetch={false}+ href={{+ pathname: `/${user.profile.username}/${type.slug}`,+ query,+ }}+ passHref+ onClick={async () => {+ sdkActionManager?.fire("eventTypeSelected", {+ eventType: type,+ });+ }}+ className="bg-default border-subtle dark:bg-muted dark:hover:bg-emphasis hover:bg-muted group relative border-b transition first:rounded-t-md last:rounded-b-md last:border-b-0"+ data-testid="event-type-link"><Iconname="arrow-right"className="text-emphasis absolute right-4 top-4 h-4 w-4 opacity-0 transition-opacity group-hover:opacity-100"/>{/* Don't prefetch till the time we drop the amount of javascript in [user][type] page which is impacting score for [user] page */}<div className="block w-full p-5">- <Link- prefetch={false}- href={{- pathname: `/${user.profile.username}/${type.slug}`,- query,- }}- passHref- onClick={async () => {- sdkActionManager?.fire("eventTypeSelected", {- eventType: type,- });- }}- data-testid="event-type-link">- <div className="flex flex-wrap items-center">- <h2 className="text-default pr-2 text-sm font-semibold">{type.title}</h2>- </div>- <EventTypeDescription eventType={type} isPublic={true} shortenDescription />- </Link>+ <div className="flex flex-wrap items-center">+ <h2 className="text-default pr-2 text-sm font-semibold">{type.title}</h2>+ </div>+ <EventTypeDescription eventType={type} isPublic={true} shortenDescription /></div>- </div>+ </Link>))}</div>