Update host setting in auth-callback and add className prop to UI page

Included a conditional to check and update host settings in the 'auth-callback.service.ts' file to avoid incorrect host setting outside of Vercel. Additionally, added a className prop to the Page component in the UI package to enhance customization capabilities.
This commit is contained in:
gbuomprisco
2024-06-09 15:42:49 +08:00
parent 134eeb2400
commit 83bb1521f7
2 changed files with 15 additions and 1 deletions

View File

@@ -141,12 +141,19 @@ export function PageHeader({
children,
title,
description,
className,
}: React.PropsWithChildren<{
className?: string;
title?: string | React.ReactNode;
description?: string | React.ReactNode;
}>) {
return (
<div className={'flex h-20 items-center justify-between lg:px-4'}>
<div
className={cn(
'flex h-20 items-center justify-between lg:px-4',
className,
)}
>
{title ? (
<div className={'flex flex-col space-y-1.5'}>
<PageTitle>{title}</PageTitle>