bug resport image change
This commit is contained in:
@@ -10,12 +10,12 @@ import { useTheme } from '@/contexts/ThemeContext'
|
||||
|
||||
|
||||
// Import images
|
||||
import sad1 from '@/assets/images/sad1.png'
|
||||
import sad2 from '@/assets/images/sad2.png'
|
||||
import sad3 from '@/assets/images/sad3.png'
|
||||
import smile from '@/assets/images/smile.png'
|
||||
import smile2 from '@/assets/images/smile2.png'
|
||||
import smile3 from '@/assets/images/smile3.png'
|
||||
import sad1 from '@/assets/images/sad1.svg'
|
||||
import sad2 from '@/assets/images/sad2.svg'
|
||||
import sad3 from '@/assets/images/sad3.svg'
|
||||
import smile from '@/assets/images/smile.svg'
|
||||
import smile2 from '@/assets/images/smile2.svg'
|
||||
import smile3 from '@/assets/images/smile3.svg'
|
||||
import { useGetProfile } from '../profile/hooks/useProfileData'
|
||||
|
||||
const ReportBug: React.FC = () => {
|
||||
@@ -65,12 +65,12 @@ const ReportBug: React.FC = () => {
|
||||
}
|
||||
|
||||
const feelings = [
|
||||
{ id: 'angry', image: sad1, alt: 'ناراضی' },
|
||||
{ id: 'crying', image: sad2, alt: 'ناراضی' },
|
||||
{ id: 'sad', image: sad3, alt: 'ناراضی' },
|
||||
{ id: 'neutral', image: smile, alt: 'خنثی' },
|
||||
{ id: 'smile', image: smile2, alt: 'راضی' },
|
||||
{ id: 'love', image: smile3, alt: 'راضی' },
|
||||
{ id: 'angry', image: sad1, alt: 'ناراضی' },
|
||||
{ id: 'crying', image: sad2, alt: 'ناراضی' },
|
||||
{ id: 'sad', image: sad3, alt: 'ناراضی' },
|
||||
]
|
||||
|
||||
return (
|
||||
@@ -94,7 +94,7 @@ const ReportBug: React.FC = () => {
|
||||
<button
|
||||
type='button'
|
||||
onClick={() => setFeeling(f.id)}
|
||||
|
||||
className={`p-1 rounded-lg transition-all ${feeling === f.id ? 'bg-primary/10' : 'hover:bg-muted/50'}`}
|
||||
>
|
||||
<img
|
||||
src={f.image}
|
||||
@@ -103,10 +103,10 @@ const ReportBug: React.FC = () => {
|
||||
/>
|
||||
</button>
|
||||
{idx === 0 && (
|
||||
<div className='text-xs mt-2 text-muted-foreground'>ناراضی</div>
|
||||
<div className='text-xs mt-2 text-muted-foreground'>راضی</div>
|
||||
)}
|
||||
{idx === feelings.length - 1 && (
|
||||
<div className='text-xs mt-2 text-muted-foreground'>راضی</div>
|
||||
<div className='text-xs mt-2 text-muted-foreground'>ناراضی</div>
|
||||
)}
|
||||
</div>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user