Cleaned up ResumeBuilder props
This commit is contained in:
parent
5e5d175376
commit
957ef07467
@ -18,7 +18,7 @@ import { useTheme } from '@mui/material/styles';
|
|||||||
|
|
||||||
|
|
||||||
import { ResumeBuilder } from './ResumeBuilder';
|
import { ResumeBuilder } from './ResumeBuilder';
|
||||||
import { Message, ChatQuery, MessageList, MessageData } from './Message';
|
import { Message, ChatQuery, MessageList } from './Message';
|
||||||
import { Snack, SeverityType } from './Snack';
|
import { Snack, SeverityType } from './Snack';
|
||||||
import { VectorVisualizer } from './VectorVisualizer';
|
import { VectorVisualizer } from './VectorVisualizer';
|
||||||
import { Controls } from './Controls';
|
import { Controls } from './Controls';
|
||||||
@ -67,15 +67,12 @@ function CustomTabPanel(props: TabPanelProps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const App = () => {
|
const App = () => {
|
||||||
const [processing, setProcessing] = useState(false);
|
|
||||||
const [sessionId, setSessionId] = useState<string | undefined>(undefined);
|
const [sessionId, setSessionId] = useState<string | undefined>(undefined);
|
||||||
const [connectionBase,] = useState<string>(getConnectionBase(window.location))
|
const [connectionBase,] = useState<string>(getConnectionBase(window.location))
|
||||||
const [menuOpen, setMenuOpen] = useState(false);
|
const [menuOpen, setMenuOpen] = useState(false);
|
||||||
const [isMenuClosing, setIsMenuClosing] = useState(false);
|
const [isMenuClosing, setIsMenuClosing] = useState(false);
|
||||||
const [tab, setTab] = useState<number>(0);
|
const [tab, setTab] = useState<number>(0);
|
||||||
const [about, setAbout] = useState<string>("");
|
const [about, setAbout] = useState<string>("");
|
||||||
const [resume, setResume] = useState<MessageData | undefined>(undefined);
|
|
||||||
const [facts, setFacts] = useState<MessageData | undefined>(undefined);
|
|
||||||
const isDesktop = useMediaQuery('(min-width:650px)');
|
const isDesktop = useMediaQuery('(min-width:650px)');
|
||||||
const prevIsDesktopRef = useRef<boolean>(isDesktop);
|
const prevIsDesktopRef = useRef<boolean>(isDesktop);
|
||||||
const chatRef = useRef<ConversationHandle>(null);
|
const chatRef = useRef<ConversationHandle>(null);
|
||||||
@ -404,7 +401,7 @@ What would you like to know about James?
|
|||||||
</CustomTabPanel>
|
</CustomTabPanel>
|
||||||
|
|
||||||
<CustomTabPanel tab={tab} index={1}>
|
<CustomTabPanel tab={tab} index={1}>
|
||||||
<ResumeBuilder {...{ facts, setFacts, resume, setResume, processing, setProcessing, setSnack, connectionBase: connectionBase, sessionId }} />
|
<ResumeBuilder {...{ setSnack, connectionBase, sessionId }} />
|
||||||
</CustomTabPanel>
|
</CustomTabPanel>
|
||||||
|
|
||||||
<CustomTabPanel tab={tab} index={2}>
|
<CustomTabPanel tab={tab} index={2}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user