Skip to content

Commit

Permalink
fix: Move the help button to the top level
Browse files Browse the repository at this point in the history
This shouldn't be buried behind an entrypoint.
  • Loading branch information
evancharlton committed Jan 4, 2025
1 parent 7ad4bb1 commit 5e84bd6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/App/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ import { Header } from "../spa-components/Header";
import LanguageSelector from "../spa-components/LanguageSelector";
import PwaContainer from "../spa-components/PwaContainer";
import classes from "./Page.module.css";
import Help from "../Game/Header/Help";

const Page = () => {
return (
<div className={classes.container}>
<Header logo="/logo.svg" title="Ordle" />
<Header logo="/logo.svg" title="Ordle">
<Help />
</Header>
<div className={classes.content}>
<Outlet />
</div>
Expand Down
2 changes: 0 additions & 2 deletions src/Game/Game.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import Grid from "./Grid";
import Keyboard from "./Keyboard";
import classes from "./Game.module.css";
import { ButtonsPortal } from "../spa-components/Header";
import Help from "./Header/Help";
import Settings from "./Header/Settings";
import Random from "../Random";

Expand All @@ -11,7 +10,6 @@ const Game = () => {
<div className={classes.container}>
<ButtonsPortal>
<>
<Help />
<Random />
<Settings />
</>
Expand Down

0 comments on commit 5e84bd6

Please sign in to comment.