File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { useReducer, useState } from 'react'
22import './App.css'
33import CanvasComponent from './components/CanvasComponent'
44import ControlPanel from './components/ControlPanel'
5+ import CodePanel from './components/CodePanel'
56import { useAnimation } from './hooks/useAnimation'
67import { animationReducer , AnimationState } from './state/animationSlice'
78import GitHubCorner from './components/GitHubCorner'
@@ -103,6 +104,14 @@ function App() {
103104 </ div >
104105 ) }
105106 </ div >
107+
108+ { /* 添加代码面板 */ }
109+ < div className = "code-section" >
110+ < h3 > 算法代码</ h3 >
111+ < div style = { { height : '280px' } } >
112+ < CodePanel state = { state } />
113+ </ div >
114+ </ div >
106115 </ div >
107116
108117 < div className = "center-panel" >
You can’t perform that action at this time.
0 commit comments