Skip to content

Commit 172f2af

Browse files
committed
use shared play buttons
1 parent 6331c67 commit 172f2af

File tree

2 files changed

+20
-14
lines changed

2 files changed

+20
-14
lines changed

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/Rules.js

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
11
import React from "react";
2+
import PlayButtons from "@skedwards88/shared-components/src/components/PlayButtons";
23
import packageJson from "../../package.json";
34

45
export default function Rules({setDisplay, timerDispatch}) {
56
return (
67
<div className="App info">
78
<h1>Gribbles: How to play</h1>
8-
<p className="infoText">
9-
{`Swipe to connect letters into words.\n\nCan you find all the words before time is up?\n\nChange the settings to control how much time you start with and how much time you get for each word that you find.\n\nIn easy mode, get a bonus point for less common words.`}
10-
</p>
11-
<button
12-
onClick={() => {
9+
<div className="infoText">
10+
<p>Swipe to connect letters into words.</p>
11+
<p>Can you find all the words before time is up?</p>
12+
<p>
13+
Change the settings to control how much time you start with and how
14+
much time you get for each word that you find.
15+
</p>
16+
<p>In easy mode, get a bonus point for less common words.</p>
17+
</div>
18+
<PlayButtons
19+
onClickPlay={() => {
1320
timerDispatch({action: "play"});
1421
setDisplay("game");
1522
}}
16-
>
17-
{"Play"}
18-
</button>
23+
onClickInstall={() => setDisplay("installOverview")}
24+
></PlayButtons>
1925
<small>version {packageJson.version}</small>
2026
</div>
2127
);

0 commit comments

Comments
 (0)