Cleaned up ResumeBuilder props

This commit is contained in:
James Ketr 2025-04-26 09:43:25 -07:00
parent 5e5d175376
commit 957ef07467

View File

@ -18,7 +18,7 @@ import { useTheme } from '@mui/material/styles';
import { ResumeBuilder } from './ResumeBuilder';
import { Message, ChatQuery, MessageList, MessageData } from './Message';
import { Message, ChatQuery, MessageList } from './Message';
import { Snack, SeverityType } from './Snack';
import { VectorVisualizer } from './VectorVisualizer';
import { Controls } from './Controls';
@ -67,15 +67,12 @@ function CustomTabPanel(props: TabPanelProps) {
}
const App = () => {
const [processing, setProcessing] = useState(false);
const [sessionId, setSessionId] = useState<string | undefined>(undefined);
const [connectionBase,] = useState<string>(getConnectionBase(window.location))
const [menuOpen, setMenuOpen] = useState(false);
const [isMenuClosing, setIsMenuClosing] = useState(false);
const [tab, setTab] = useState<number>(0);
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 prevIsDesktopRef = useRef<boolean>(isDesktop);
const chatRef = useRef<ConversationHandle>(null);
@ -404,7 +401,7 @@ What would you like to know about James?
</CustomTabPanel>
<CustomTabPanel tab={tab} index={1}>
<ResumeBuilder {...{ facts, setFacts, resume, setResume, processing, setProcessing, setSnack, connectionBase: connectionBase, sessionId }} />
<ResumeBuilder {...{ setSnack, connectionBase, sessionId }} />
</CustomTabPanel>
<CustomTabPanel tab={tab} index={2}>