Spaces:
Running
Running
Update src/App.tsx
Browse files- src/App.tsx +3 -4
src/App.tsx
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
// src/App.tsx (نسخه نهایی با آیکون شخصیت جدید)
|
2 |
-
|
3 |
import React, { useEffect, useRef, useState, FC } from "react";
|
4 |
import './App.scss';
|
5 |
import { AppProvider, useAppContext, PersonalityType, PersonalityInstructions } from "./contexts/AppContext";
|
@@ -100,8 +99,8 @@ const AppInternal: React.FC = () => {
|
|
100 |
<div className="main-wrapper">
|
101 |
<div className="header-controls">
|
102 |
<button aria-label="انتخاب شخصیت" className="header-icon-button" onClick={() => setIsPersonalityMenuOpen(v => !v)}>
|
103 |
-
{/* ✅ تغییر اصلی
|
104 |
-
<span className="material-symbols-outlined">
|
105 |
</button>
|
106 |
<button ref={notificationButtonRef} aria-label="اطلاعات" className="header-icon-button" onClick={() => setIsNotificationOpen(v => !v)}>
|
107 |
<span className="material-symbols-outlined">info</span>
|
@@ -120,7 +119,7 @@ const AppInternal: React.FC = () => {
|
|
120 |
<video id="video-feed" ref={videoRef} autoPlay playsInline className={cn({ hidden: !isCamActive }, { "scale-x-[-1]": currentFacingMode === 'user' })} />
|
121 |
{isMicActive && !isCamActive && <div id="large-logo-container"><Logo isMini={false} isActive={true} isAi={false} speakingVolume={volume} isUserSpeaking={isUserSpeaking} /></div>}
|
122 |
</div>
|
123 |
-
<ControlTray videoRef={videoRef} onUserSpeakingChange={setIsUserSpeaking} isAppMicActive={isMicActive} onAppMicToggle={setIsMicActive} isAppCamActive={
|
124 |
</div>
|
125 |
<CustomModal isOpen={isCustomModalOpen} onClose={() => setIsCustomModalOpen(false)} onSave={(name, instructions) => changePersonality('custom', { name, instructions })} initialName={customUserName} initialInstructions={customInstructions} />
|
126 |
</>
|
|
|
1 |
// src/App.tsx (نسخه نهایی با آیکون شخصیت جدید)
|
|
|
2 |
import React, { useEffect, useRef, useState, FC } from "react";
|
3 |
import './App.scss';
|
4 |
import { AppProvider, useAppContext, PersonalityType, PersonalityInstructions } from "./contexts/AppContext";
|
|
|
99 |
<div className="main-wrapper">
|
100 |
<div className="header-controls">
|
101 |
<button aria-label="انتخاب شخصیت" className="header-icon-button" onClick={() => setIsPersonalityMenuOpen(v => !v)}>
|
102 |
+
{/* ✅ تغییر اصلی اینجاست */}
|
103 |
+
<span className="material-symbols-outlined">smart_toy</span>
|
104 |
</button>
|
105 |
<button ref={notificationButtonRef} aria-label="اطلاعات" className="header-icon-button" onClick={() => setIsNotificationOpen(v => !v)}>
|
106 |
<span className="material-symbols-outlined">info</span>
|
|
|
119 |
<video id="video-feed" ref={videoRef} autoPlay playsInline className={cn({ hidden: !isCamActive }, { "scale-x-[-1]": currentFacingMode === 'user' })} />
|
120 |
{isMicActive && !isCamActive && <div id="large-logo-container"><Logo isMini={false} isActive={true} isAi={false} speakingVolume={volume} isUserSpeaking={isUserSpeaking} /></div>}
|
121 |
</div>
|
122 |
+
<ControlTray videoRef={videoRef} onUserSpeakingChange={setIsUserSpeaking} isAppMicActive={isMicActive} onAppMicToggle={setIsMicActive} isAppCamActive={isCamActive} onAppCamToggle={setIsCamActive} currentFacingMode={currentFacingMode} onFacingModeChange={setCurrentFacingMode} />
|
123 |
</div>
|
124 |
<CustomModal isOpen={isCustomModalOpen} onClose={() => setIsCustomModalOpen(false)} onSave={(name, instructions) => changePersonality('custom', { name, instructions })} initialName={customUserName} initialInstructions={customInstructions} />
|
125 |
</>
|