aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2022-05-04 13:03:11 +0300
committereug-vs <eugene@eug-vs.xyz>2022-05-04 13:03:11 +0300
commit34cd013fd6d35e6e45bde65d6fe21622340b652f (patch)
tree9e6ec9a899acecd8dca05233a8ad94229183e0bc /src/components
parent997999bf618ea4c4fc8c4f6a27534afa97f3731a (diff)
downloadchrono-cube-ui-34cd013fd6d35e6e45bde65d6fe21622340b652f.tar.gz
feat: use code tag in helper text
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Timer.tsx16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/components/Timer.tsx b/src/components/Timer.tsx
index e90c3ce..c3bc555 100644
--- a/src/components/Timer.tsx
+++ b/src/components/Timer.tsx
@@ -9,8 +9,20 @@ enum Mode {
};
const helperText = {
- [Mode.idle]: 'Hold SPACE to start countdown',
- [Mode.countdown]: 'Release SPACE to begin',
+ [Mode.idle]: (
+ <>
+ <span>Hold </span>
+ <code>SPACE</code>
+ <span> to start countdown</span>
+ </>
+ ),
+ [Mode.countdown]: (
+ <>
+ <span>Release </span>
+ <code>SPACE</code>
+ <span> to begin</span>
+ </>
+ ),
[Mode.running]: 'Go fast!',
[Mode.over]: 'You are too late!',
};