Skip to content

Commit

Permalink
Create Players and add to MainPage
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaRethy committed Sep 9, 2024
1 parent ca7f119 commit d561ef9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions client/src/components/Players.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Manage API call to get all players

export const Players = () => {
return (
<div className="text-white text-2xl">List of All Players</div>
)
}
2 changes: 2 additions & 0 deletions client/src/screens/MainPage.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Sidebar, { SidebarItem } from '../components/SideBar';
import dice from '../assets/dice.jpg'
import RollDice from '../components/RollDice';
import { Players } from '../components/Players';
import { FaDice, FaUsers } from "react-icons/fa";
import { FaRankingStar } from "react-icons/fa6";
import { useState } from 'react';
Expand All @@ -18,6 +19,7 @@ const MainPage: React.FC = () => {
</Sidebar>
<div className='py-20 px-48 rounded-xl border border-slate-500 backdrop-blur-lg shadow-md shadow-slate-600'>
{view === 0 && <RollDice />}
{view === 1 && <Players />}
</div>
<div></div>
</section>
Expand Down

0 comments on commit d561ef9

Please sign in to comment.