T20: Pass yjsDocRef to RibbonBar in App.tsx
This commit is contained in:
@@ -34,15 +34,15 @@ function AppContent() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={`app-container ${theme}`} data-theme={theme}>
|
<div className={`app-container ${theme}`} data-theme={theme}>
|
||||||
<RibbonBar onTabChange={handleRibbonTabChange} />
|
<RibbonBar onTabChange={handleRibbonTabChange} yjsDoc={yjsDocRef} />
|
||||||
<div className="main-content">
|
<div className="main-content">
|
||||||
<CanvasArea ref={canvasRef} />
|
<CanvasArea ref={canvasRef} />
|
||||||
<SidePanel canvasRef={canvasRef} yjsDoc={yjsDocRef} />
|
<SidePanel canvasRef={canvasRef} yjsDoc={yjsDocRef} />
|
||||||
</div>
|
</div>
|
||||||
<CommandLine />
|
<CommandLine />
|
||||||
<StatusBar />
|
<StatusBar />
|
||||||
<button
|
<button
|
||||||
className="theme-toggle-button"
|
className="theme-toggle-button"
|
||||||
onClick={toggleTheme}
|
onClick={toggleTheme}
|
||||||
aria-label={`Switch to ${theme === 'dark' ? 'light' : 'dark'} theme`}
|
aria-label={`Switch to ${theme === 'dark' ? 'light' : 'dark'} theme`}
|
||||||
>
|
>
|
||||||
@@ -60,4 +60,4 @@ function App() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default App;
|
export default App;
|
||||||
|
|||||||
Reference in New Issue
Block a user