Skip to content

Commit b45647c

Browse files
committed
Informational Data
Added informational content
1 parent 872f273 commit b45647c

File tree

3 files changed

+387
-1
lines changed

3 files changed

+387
-1
lines changed

src/App.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import Navbar from './components/Navbar/Navbar';
1010
import Header from './components/Header/Header';
1111
import TestContainer from './components/TestContainer/TestContainer';
1212
import KeyHistory from './components/KeyHistory/KeyHistory';
13+
import InfoSection from './components/InfoSection/InfoSection';
1314
import Footer from './components/Footer/Footer';
1415

1516
const 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>

0 commit comments

Comments
 (0)