diff --git a/src/Firebase.ts b/src/Firebase.ts index a1c0145..f09c5ad 100755 --- a/src/Firebase.ts +++ b/src/Firebase.ts @@ -50,6 +50,9 @@ const db = getDatabase(app); // Store what channel the user is currently in export let currentChannel = "main"; +export function setCurrentChannel(channel: string): void { + currentChannel = channel; +} // Define structure of user data from Firebase export interface UserData { diff --git a/src/css/Channels.css b/src/css/Channels.css index 8b5f718..841947f 100644 --- a/src/css/Channels.css +++ b/src/css/Channels.css @@ -10,3 +10,17 @@ width: 20%; z-index: 1; } + +.buttons{ + height: 50px; + width: 90%; + border: none; + border-radius: 5px; + background-color: rgb(70, 150, 10); + cursor: pointer; /* Makes cursor change on hover */ + margin: 7px; +} + +.buttons:hover{ + background-color: rgb(70, 170, 10); +} \ No newline at end of file diff --git a/src/layout/Channels.tsx b/src/layout/Channels.tsx index c3339a5..29ba5fb 100644 --- a/src/layout/Channels.tsx +++ b/src/layout/Channels.tsx @@ -5,16 +5,31 @@ */ import "../css/Channels.css"; - +import {setCurrentChannel} from "../Firebase"; function Channels() { return ( <>
seggs
*/} + + + + + +