Skip to content

Commit d043d9a

Browse files
committed
fix: command palette in about me pages.
AboutPage.js uses a full-screen, high-z-index overlay, obscuring the CommandPalette rendered by Layout.js. To make CommandPalette visible on the AboutPage, had to re-import and render it directly within AboutPage.js's component tree. This way, it respects AboutPage.js's z-indexing and appears on top, while still using the global state from CommandPaletteContext.
1 parent 923179e commit d043d9a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/pages/AboutPage.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import {
88
Terminal,
99
Article,
1010
} from '@phosphor-icons/react';
11+
import CommandPalette from '../components/CommandPalette';
12+
import { useCommandPalette } from '../context/CommandPaletteContext';
1113
import NeuromancerHUD from './about-views/NeuromancerHUD';
1214
import SystemArchitecture from './about-views/SystemArchitecture';
1315
import MindMapConstellation from './about-views/MindMapConstellation';
@@ -52,6 +54,7 @@ const ViewSwitcher = ({ currentView, setView }) => {
5254
const AboutPage = () => {
5355
const [view, setView] = useState('dossier');
5456
const { unlockAchievement } = useAchievements();
57+
const { isPaletteOpen, setIsPaletteOpen } = useCommandPalette();
5558

5659
useSeo({
5760
title: 'Fezcodex | About',
@@ -119,6 +122,7 @@ const AboutPage = () => {
119122

120123
{/* Switcher Controls */}
121124
<ViewSwitcher currentView={view} setView={setView} />
125+
<CommandPalette isOpen={isPaletteOpen} setIsOpen={setIsPaletteOpen} />
122126
</div>
123127
);
124128
};

0 commit comments

Comments
 (0)