#24-directory-structure #26

Merged
djmil merged 15 commits from #24-directory-structure into main 2023-11-10 09:37:23 +01:00
4 changed files with 9 additions and 3 deletions
Showing only changes of commit df60508d45 - Show all commits

View File

@ -3,7 +3,7 @@ import React, { useReducer } from 'react'
import { BrowserRouter, Routes, Route } from "react-router-dom"
import Header from "./container/Header"
import Leaderboard from "./components/Leaderboard"
import Leaderboard from "./container/Leaderboard"
import Game from "./components/Game"
import About from "./components/About"

View File

@ -0,0 +1,5 @@
import React from "react"
export default function Loading() {
return <div className="Loading">Loading...</div>
}

View File

@ -1,10 +1,11 @@
import './Leaderboard.css';
import React from "react"
import './index.css';
import Loading from '../components/Loading';
export default function Leaderboard({ leaderboard }) {
if (leaderboard == null)
return <p>Loading...</p>
return <Loading />
// var listItems = Object.keys(data).map(playerName => {
// var rank = data[playerName];