commit 56b6a19d589af624eecef572a138cb88309242d6
parent e72c42df0d41548082bcd76a3aa84e64ad4ded45
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date: Thu, 9 Mar 2023 00:56:07 +0100
feat: doc title
Diffstat:
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/public/index.html b/public/index.html
@@ -24,7 +24,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
- <title>Savognin Heats</title>
+ <title>My Heats</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
diff --git a/src/App.js b/src/App.js
@@ -7,6 +7,8 @@ const supabaseUrl = 'https://aaxkgqazjhwumoljibld.supabase.co'
const supabaseKey = process.env.REACT_APP_SUPABASE_KEY
const supabase = createClient(supabaseUrl, supabaseKey)
+document.title = process.env.REACT_APP_DOC_TITLE ? process.env.REACT_APP_DOC_TITLE : 'My Heats'
+
async function getStartlistForHeats(heatIds) {
return supabase.rpc('distinct_startlist', { 'heat_ids': heatIds })
}
@@ -150,7 +152,9 @@ function App() {
<div className="App">
<header>
<div>
- Heats:
+ Startlist:
+ <Select />
+ Heats to display:
<Select
closeMenuOnSelect={false}
isMulti
@@ -164,6 +168,7 @@ function App() {
options={rankOpts}
onChange={h => setRankingComp(h)}
/>
+ Top N to new startlist: <input type="number" size="5" /><button>Level up!</button>
</div>
<h1>Leaderboard</h1>
</header>