Ezmary commited on
Commit
f8d0efc
·
verified ·
1 Parent(s): 3c7ed54

Update src/components/logo/Logo.tsx

Browse files
Files changed (1) hide show
  1. src/components/logo/Logo.tsx +5 -4
src/components/logo/Logo.tsx CHANGED
@@ -2,11 +2,12 @@
2
 
3
  import React from 'react';
4
  import cn from "classnames";
5
- import { humanAiIcon } from "@/components/icons"; // مسیر را به ../icons تغییر می‌دهیم
 
6
 
7
  type LogoProps = {
8
  isMini: boolean;
9
- isAi: boolean; // توجه: در کد شما فقط از حالت isAi=false استفاده می‌شود
10
  isActive: boolean;
11
  }
12
 
@@ -52,8 +53,8 @@ export default function Logo({isAi, isActive, isMini}: LogoProps) {
52
  />
53
 
54
  <div className={cn(
55
- "z-10 absolute flex items-center justify-center text-white", // text-white اضافه شد
56
- "inset-0" // از inset-0 برای پوشش کامل استفاده می‌کنیم
57
  )}>
58
  {humanAiIcon({ size: isMini ? 24 : 45 })}
59
  </div>
 
2
 
3
  import React from 'react';
4
  import cn from "classnames";
5
+ // تغییر در این خط: به جای "@/components/icons" از مسیر نسبی "../icons" استفاده شده
6
+ import { humanAiIcon } from '../icons';
7
 
8
  type LogoProps = {
9
  isMini: boolean;
10
+ isAi: boolean;
11
  isActive: boolean;
12
  }
13
 
 
53
  />
54
 
55
  <div className={cn(
56
+ "z-10 absolute flex items-center justify-center text-white",
57
+ "inset-0"
58
  )}>
59
  {humanAiIcon({ size: isMini ? 24 : 45 })}
60
  </div>