Skip to content

Commit

Permalink
fix: unoptimize some image
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Mar 10, 2024
1 parent 015ca83 commit 8f88dc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/components/layout/header/internal/Activity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import React, {
} from 'react'
import clsx from 'clsx'
import { AnimatePresence, m } from 'framer-motion'
import Image from 'next/image'

import { setActivityMediaInfo, setActivityProcessInfo } from '~/atoms/activity'
import { useActivity } from '~/atoms/hooks'
Expand Down Expand Up @@ -218,12 +217,11 @@ const TriggerComponent = memo<{
if (!src) return null

return (
<Image
<img
width={32}
height={32}
src={error ? ErrorFallback : src}
alt={processName}
priority
fetchPriority="low"
className={className}
onError={() => setError(true)}
Expand Down
3 changes: 1 addition & 2 deletions src/components/modules/comment/CommentBox/AuthedInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import { useEffect } from 'react'
import clsx from 'clsx'
import Image from 'next/image'

import { useUser } from '@clerk/nextjs'

Expand Down Expand Up @@ -39,7 +38,7 @@ export const CommentBoxAuthedInput = () => {
'ml-[2px] backface-hidden',
)}
>
<Image
<img
className="rounded-full object-cover"
src={user.imageUrl}
alt={`${displayName}'s avatar`}
Expand Down

0 comments on commit 8f88dc9

Please sign in to comment.