- Added CompanyOffer component for submitting company offers with validation. - Integrated email sending functionality upon form submission. - Created a success page for company registration confirmation. - Introduced a reusable SuccessNotification component for displaying success messages. - Updated account update functionality with new fields and validation. - Enhanced user experience with back button and logo components. - Added necessary database migrations for account updates.
37 lines
712 B
TypeScript
37 lines
712 B
TypeScript
import Link from 'next/link';
|
|
|
|
import { MedReportLogo } from './med-report-logo';
|
|
|
|
function LogoImage({
|
|
className,
|
|
compact = false,
|
|
}: {
|
|
className?: string;
|
|
width?: number;
|
|
compact?: boolean;
|
|
}) {
|
|
return <MedReportLogo compact={compact} className={className} />;
|
|
}
|
|
|
|
export function AppLogo({
|
|
href,
|
|
label,
|
|
className,
|
|
compact = false,
|
|
}: {
|
|
href?: string | null;
|
|
className?: string;
|
|
label?: string;
|
|
compact?: boolean;
|
|
}) {
|
|
if (href === null) {
|
|
return <LogoImage className={className} compact={compact} />;
|
|
}
|
|
|
|
return (
|
|
<Link aria-label={label ?? 'Home Page'} href={href ?? '/'} prefetch={true}>
|
|
<LogoImage className={className} compact={compact} />
|
|
</Link>
|
|
);
|
|
}
|