@@ -3,7 +3,6 @@ import { App as AntdApp, Layout, Row, Col, Collapse, Spin } from "antd";
33import { LoadingOutlined } from "@ant-design/icons" ;
44import { Routes , Route , useSearchParams , useNavigate } from "react-router-dom" ;
55import Navbar from "./components/Navbar" ;
6- import Footer from "./components/Footer" ;
76import tour from "./components/Tour" ;
87import AgreementData from "./editors/editorsContainer/AgreementData" ;
98import LearnNow from "./pages/LearnNow" ;
@@ -16,19 +15,14 @@ import SampleDropdown from "./components/SampleDropdown";
1615import UseShare from "./components/UseShare" ;
1716import LearnContent from "./components/Content" ;
1817import ResizableContainer from "./components/ResizableContainer" ;
19- import { AIChatPanel } from "./components/AIChatPanel " ;
18+ import MainContainer from "./pages/MainContainer " ;
2019
2120const { Content } = Layout ;
2221
2322const App = ( ) => {
2423 const navigate = useNavigate ( ) ;
2524 const init = useAppStore ( ( state ) => state . init ) ;
2625 const loadFromLink = useAppStore ( ( state ) => state . loadFromLink ) ;
27- const { isAIChatOpen, setAIChatOpen } = useAppStore ( ( state ) => ( {
28- isAIChatOpen : state . isAIChatOpen ,
29- setAIChatOpen : state . setAIChatOpen
30- }
31- ) ) ;
3226 const backgroundColor = useAppStore ( ( state ) => state . backgroundColor ) ;
3327 const textColor = useAppStore ( ( state ) => state . textColor ) ;
3428 const [ activePanel , setActivePanel ] = useState < string | string [ ] > ( ) ;
@@ -124,7 +118,7 @@ const App = () => {
124118
125119 return (
126120 < AntdApp >
127- < Layout style = { { minHeight : "100vh" } } >
121+ < Layout style = { { height : "100vh" } } >
128122 < Navbar scrollToFooter = { scrollToFooter } />
129123 < Content >
130124 { loading ? (
@@ -146,14 +140,13 @@ const App = () => {
146140 path = "/"
147141 element = {
148142 < div
143+ className = "h-full"
149144 style = { {
150- padding : 24 ,
151- paddingBottom : 24 ,
152- minHeight : 360 ,
153145 background : backgroundColor ,
154146 } }
155147 >
156- < Row >
148+ < MainContainer />
149+ { /* <Row>
157150 <Col xs={24} sm={8}>
158151 <Row
159152 style={{
@@ -222,13 +215,15 @@ const App = () => {
222215 style={{ marginBottom: "24px" }}
223216 />
224217 }
225- rightPane = { < AgreementHtml loading = { loading } isModal = { false } /> }
226- aiChatPane = { isAIChatOpen ? < AIChatPanel /> : null }
218+ rightPane={
219+ <AgreementHtml loading={loading} isModal={false} />
220+ }
227221 initialLeftWidth={66}
228222 minLeftWidth={30}
229223 minRightWidth={30}
230224 />
231225 </div>
226+ <FloatingFAB /> */ }
232227 </ div >
233228 }
234229 />
@@ -241,7 +236,6 @@ const App = () => {
241236 </ Routes >
242237 ) }
243238 </ Content >
244- < Footer />
245239 </ Layout >
246240 </ AntdApp >
247241 ) ;
0 commit comments