File tree Expand file tree Collapse file tree 3 files changed +387
-1
lines changed
Expand file tree Collapse file tree 3 files changed +387
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import Navbar from './components/Navbar/Navbar';
1010import Header from './components/Header/Header' ;
1111import TestContainer from './components/TestContainer/TestContainer' ;
1212import KeyHistory from './components/KeyHistory/KeyHistory' ;
13+ import InfoSection from './components/InfoSection/InfoSection' ;
1314import Footer from './components/Footer/Footer' ;
1415
1516const AppWrapper = styled . div `
@@ -45,7 +46,7 @@ const App: React.FC = () => {
4546 } , [ ] ) ;
4647
4748 // Check if we're in a keyboard test-related tab (keyTest, layout, or type)
48- const isKeyboardRelatedTab = activeTab === 'keyTest' || activeTab === 'layout' || activeTab === 'type' ;
49+ const isKeyboardRelatedTab = [ 'keyTest' , 'layout' , 'type' ] . includes ( activeTab ) ;
4950
5051 return (
5152 < ThemeProvider theme = { theme } >
@@ -59,6 +60,7 @@ const App: React.FC = () => {
5960 onTabChange = { handleTabChange }
6061 />
6162 { isKeyboardRelatedTab && < KeyHistory keys = { keyHistory } /> }
63+ < InfoSection activeTab = { activeTab } />
6264 </ MainContent >
6365 < Footer />
6466 </ AppWrapper >
You can’t perform that action at this time.
0 commit comments