Skip to content

Commit f6636dc

Browse files
committed
fix: logo
1 parent 3399fb7 commit f6636dc

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/components/Payload/Logo/index.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,27 @@ interface Props {
66
className?: string
77
loading?: 'lazy' | 'eager'
88
priority?: 'auto' | 'high' | 'low'
9+
alt?: string
10+
src?: string
911
}
1012

1113
export const Logo = (props: Props) => {
12-
const { loading: loadingFromProps, priority: priorityFromProps, className } = props
14+
const { loading: loadingFromProps, priority: priorityFromProps, className, alt="Cortex Reply Logo", src="/logo.png" } = props
1315

1416
const loading = loadingFromProps || 'lazy'
1517
const priority = priorityFromProps || 'low'
1618

1719
return (
1820
/* eslint-disable @next/next/no-img-element */
1921
<Image
20-
alt="Payload Logo"
22+
alt={alt}
2123
width={193}
2224
height={34}
2325
loading={loading}
2426
fetchPriority={priority}
2527
decoding="async"
2628
className={clsx('max-w-[9.375rem] w-full h-[34px]', className)}
27-
src="https://raw.githubusercontent.com/payloadcms/payload/main/packages/ui/src/assets/payload-logo-light.svg"
29+
src={src}
2830
/>
2931
)
3032
}

0 commit comments

Comments
 (0)