mirror of
https://github.com/ershisan99/www.git
synced 2025-12-17 12:34:17 +00:00
show date/time for the current timezone
This commit is contained in:
@@ -4,6 +4,7 @@ import * as AvatarPrimitive from '@radix-ui/react-avatar'
|
||||
import type * as React from 'react'
|
||||
|
||||
import { cn } from '@/lib/utils'
|
||||
import { CDN_URL } from '@/shared/constants'
|
||||
|
||||
function Avatar({
|
||||
className,
|
||||
@@ -23,12 +24,16 @@ function Avatar({
|
||||
|
||||
function AvatarImage({
|
||||
className,
|
||||
src,
|
||||
...props
|
||||
}: React.ComponentProps<typeof AvatarPrimitive.Image>) {
|
||||
const isDev = process.env.NODE_ENV === 'development'
|
||||
|
||||
return (
|
||||
<AvatarPrimitive.Image
|
||||
data-slot='avatar-image'
|
||||
className={cn('aspect-square size-full object-cover!', className)}
|
||||
src={isDev ? src : `${CDN_URL}${src}`}
|
||||
{...props}
|
||||
/>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user