Polish a few things to get it compiling out of the box (#145)

This commit is contained in:
Max Leiter 2023-09-06 10:15:21 -07:00 committed by GitHub
commit 0a201f63c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View file

@ -34,6 +34,7 @@ export function UserMenu({ user }: UserMenuProps) {
className="w-6 h-6 transition-opacity duration-300 rounded-full select-none ring-1 ring-zinc-100/10 hover:opacity-80" className="w-6 h-6 transition-opacity duration-300 rounded-full select-none ring-1 ring-zinc-100/10 hover:opacity-80"
src={user?.image ? `${user.image}&s=60` : ''} src={user?.image ? `${user.image}&s=60` : ''}
alt={user.name ?? 'Avatar'} alt={user.name ?? 'Avatar'}
height={48} width={48}
/> />
) : ( ) : (
<div className="flex items-center justify-center text-xs font-medium uppercase rounded-full select-none h-7 w-7 shrink-0 bg-muted/50 text-muted-foreground"> <div className="flex items-center justify-center text-xs font-medium uppercase rounded-full select-none h-7 w-7 shrink-0 bg-muted/50 text-muted-foreground">

View file

@ -4,4 +4,14 @@ module.exports = {
experimental: { experimental: {
serverActions: true, serverActions: true,
}, },
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'avatars.githubusercontent.com',
port: '',
pathname: '**',
},
],
},
}; };