Spaces:
Sleeping
Sleeping
copilot-swe-agent[bot]
ArnavSingh76533
commited on
Commit
·
aa9d0a3
1
Parent(s):
3394d66
Fix TypeScript error and verify UI implementation
Browse filesCo-authored-by: ArnavSingh76533 <160649079+ArnavSingh76533@users.noreply.github.com>
- package-lock.json +1 -1
- pages/index.tsx +2 -1
package-lock.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"name": "
|
| 3 |
"lockfileVersion": 3,
|
| 4 |
"requires": true,
|
| 5 |
"packages": {
|
|
|
|
| 1 |
{
|
| 2 |
+
"name": "Stream4",
|
| 3 |
"lockfileVersion": 3,
|
| 4 |
"requires": true,
|
| 5 |
"packages": {
|
pages/index.tsx
CHANGED
|
@@ -17,7 +17,7 @@ export default function Index() {
|
|
| 17 |
const { data } = useSWR("/api/stats", (url) =>
|
| 18 |
fetch(url).then((r) => r.json())
|
| 19 |
)
|
| 20 |
-
const { data: roomsData
|
| 21 |
"/api/rooms",
|
| 22 |
(url) => fetch(url).then((r) => r.json()),
|
| 23 |
{ refreshInterval: 5000 } // Auto-refresh every 5 seconds
|
|
@@ -214,6 +214,7 @@ export default function Index() {
|
|
| 214 |
</div>
|
| 215 |
</div>
|
| 216 |
<Button
|
|
|
|
| 217 |
className="px-4 py-2 text-sm font-medium"
|
| 218 |
actionClasses="bg-primary-600 hover:bg-primary-700 active:bg-primary-800"
|
| 219 |
onClick={async () => {
|
|
|
|
| 17 |
const { data } = useSWR("/api/stats", (url) =>
|
| 18 |
fetch(url).then((r) => r.json())
|
| 19 |
)
|
| 20 |
+
const { data: roomsData } = useSWR<{ rooms: PublicRoom[] }>(
|
| 21 |
"/api/rooms",
|
| 22 |
(url) => fetch(url).then((r) => r.json()),
|
| 23 |
{ refreshInterval: 5000 } // Auto-refresh every 5 seconds
|
|
|
|
| 214 |
</div>
|
| 215 |
</div>
|
| 216 |
<Button
|
| 217 |
+
tooltip="Join this room"
|
| 218 |
className="px-4 py-2 text-sm font-medium"
|
| 219 |
actionClasses="bg-primary-600 hover:bg-primary-700 active:bg-primary-800"
|
| 220 |
onClick={async () => {
|