Ezmary commited on
Commit
323a2a7
·
verified ·
1 Parent(s): c50f4c9

Update src/App.tsx

Browse files
Files changed (1) hide show
  1. src/App.tsx +10 -10
src/App.tsx CHANGED
@@ -8,8 +8,9 @@ import { IOSModal } from "./components/ios-modal/IOSModal";
8
  import { isIOS } from "./lib/platform";
9
  import cn from "classnames";
10
  import { LiveConfig } from "./multimodal-live-types";
11
- import Logo from "./components/logo/Logo"; // <-- کامپوننت جدید Logo ایمپورت شد
12
- import BackButton from "./components/back-button/BackButton";
 
13
 
14
  const myCustomInstruction = `
15
  تو دستیار صوتی و تصویری پیشرفته از "اپلیکیشن هوش مصنوعی هوشان" هستی
@@ -36,8 +37,6 @@ const initialAppConfig: LiveConfig = {
36
  },
37
  };
38
 
39
- // آیکون میکروفون از اینجا حذف شد چون به فایل icons.tsx منتقل شده است
40
-
41
  interface AppInternalLogicProps {
42
  isMicActive: boolean;
43
  isCamActive: boolean;
@@ -76,16 +75,18 @@ const AppInternalLogic: React.FC<AppInternalLogicProps> = ({
76
  return (
77
  <div className="w-full flex flex-col items-center justify-center min-h-screen text-foreground antialiased">
78
  <div className="main-wrapper max-w-3xl w-full flex flex-col items-center justify-center h-full relative">
 
79
  <div className="header-controls">
80
- <div className="back-button-container">
81
- <BackButton />
82
- </div>
83
  <div id="notification-trigger-container">
84
  <button
85
  ref={notificationButtonRef}
86
  id="notification-button"
87
  aria-label="Notifications"
88
- className="header-button"
 
89
  onClick={(e) => {
90
  e.stopPropagation();
91
  setIsNotificationOpen(!isNotificationOpen);
@@ -95,6 +96,7 @@ const AppInternalLogic: React.FC<AppInternalLogicProps> = ({
95
  </button>
96
  </div>
97
  </div>
 
98
 
99
  <div ref={notificationPopoverRef} id="notification-popover-wrapper" className="notification-popover-wrapper">
100
  <div
@@ -127,7 +129,6 @@ const AppInternalLogic: React.FC<AppInternalLogicProps> = ({
127
  id="large-logo-container"
128
  className="absolute top-0 left-0 w-full h-full flex items-center justify-center pointer-events-none"
129
  >
130
- {/* کامپوننت Logo جدید جایگزین LogoAnimation شد */}
131
  <Logo isMini={false} isActive={true} isAi={false} />
132
  </div>
133
  )}
@@ -145,7 +146,6 @@ const AppInternalLogic: React.FC<AppInternalLogicProps> = ({
145
  onAppCamToggle={setIsCamActive}
146
  currentFacingMode={currentFacingMode}
147
  onFacingModeChange={onFacingModeChange}
148
- // پراپ ReferenceMicrophoneIcon حذف شد چون دیگر لازم نیست
149
  />
150
  </div>
151
  </div>
 
8
  import { isIOS } from "./lib/platform";
9
  import cn from "classnames";
10
  import { LiveConfig } from "./multimodal-live-types";
11
+ import Logo from "./components/logo/Logo";
12
+ // BackButton از اینجا حذف شد
13
+ // import BackButton from "./components/back-button/BackButton";
14
 
15
  const myCustomInstruction = `
16
  تو دستیار صوتی و تصویری پیشرفته از "اپلیکیشن هوش مصنوعی هوشان" هستی
 
37
  },
38
  };
39
 
 
 
40
  interface AppInternalLogicProps {
41
  isMicActive: boolean;
42
  isCamActive: boolean;
 
75
  return (
76
  <div className="w-full flex flex-col items-center justify-center min-h-screen text-foreground antialiased">
77
  <div className="main-wrapper max-w-3xl w-full flex flex-col items-center justify-center h-full relative">
78
+ {/* --- شروع تغییرات در این بخش --- */}
79
  <div className="header-controls">
80
+ {/* دکمه بازگشت و div آن کاملاً حذف شد */}
81
+ <div /> {/* این div خالی برای حفظ ساختار flex (justify-content: space-between) است */}
82
+
83
  <div id="notification-trigger-container">
84
  <button
85
  ref={notificationButtonRef}
86
  id="notification-button"
87
  aria-label="Notifications"
88
+ // کلاس 'header-button' حذف و کلاس‌های جدید اضافه شد
89
+ className="p-2 bg-transparent text-gray-600 dark:text-gray-300 hover:text-black dark:hover:text-white transition-colors"
90
  onClick={(e) => {
91
  e.stopPropagation();
92
  setIsNotificationOpen(!isNotificationOpen);
 
96
  </button>
97
  </div>
98
  </div>
99
+ {/* --- پایان تغییرات --- */}
100
 
101
  <div ref={notificationPopoverRef} id="notification-popover-wrapper" className="notification-popover-wrapper">
102
  <div
 
129
  id="large-logo-container"
130
  className="absolute top-0 left-0 w-full h-full flex items-center justify-center pointer-events-none"
131
  >
 
132
  <Logo isMini={false} isActive={true} isAi={false} />
133
  </div>
134
  )}
 
146
  onAppCamToggle={setIsCamActive}
147
  currentFacingMode={currentFacingMode}
148
  onFacingModeChange={onFacingModeChange}
 
149
  />
150
  </div>
151
  </div>