From 3eafcf302f259f75fe3a67758efe489af57b321e Mon Sep 17 00:00:00 2001 From: djmil Date: Tue, 31 Oct 2023 17:29:01 +0100 Subject: [PATCH] minor cleanup --- webapp/src/components/Game/GameMessage.jsx | 4 ++-- webapp/src/components/{Header/index.css => Header.css} | 0 webapp/src/components/{Header/index.jsx => Header.jsx} | 8 ++++---- webapp/src/components/{Header/wave.css => woble.css} | 7 ------- 4 files changed, 6 insertions(+), 13 deletions(-) rename webapp/src/components/{Header/index.css => Header.css} (100%) rename webapp/src/components/{Header/index.jsx => Header.jsx} (87%) rename webapp/src/components/{Header/wave.css => woble.css} (77%) diff --git a/webapp/src/components/Game/GameMessage.jsx b/webapp/src/components/Game/GameMessage.jsx index aad2d4c..328b2ba 100644 --- a/webapp/src/components/Game/GameMessage.jsx +++ b/webapp/src/components/Game/GameMessage.jsx @@ -1,11 +1,11 @@ import './GameMessage.css' import React from 'react' -import { AppContext } from '../../context/app' +// import { AppContext } from '../../context/app' export default function GameMessage() { - const [ctx] = React.useContext(AppContext) + // const [ctx] = React.useContext(AppContext) return (
diff --git a/webapp/src/components/Header/index.css b/webapp/src/components/Header.css similarity index 100% rename from webapp/src/components/Header/index.css rename to webapp/src/components/Header.css diff --git a/webapp/src/components/Header/index.jsx b/webapp/src/components/Header.jsx similarity index 87% rename from webapp/src/components/Header/index.jsx rename to webapp/src/components/Header.jsx index b255958..a785ebd 100644 --- a/webapp/src/components/Header/index.jsx +++ b/webapp/src/components/Header.jsx @@ -1,9 +1,9 @@ -import './index.css'; -import './wave.css' +import './Header.css'; +import './woble.css' import React from "react" import { NavLink } from "react-router-dom"; -import OnlineToggle from '../OnlineTgl'; -import { AppData } from "../../context/data" +import OnlineToggle from './OnlineTgl'; +import { AppData } from "../context/data" export default function Header() { const [data] = React.useContext(AppData) diff --git a/webapp/src/components/Header/wave.css b/webapp/src/components/woble.css similarity index 77% rename from webapp/src/components/Header/wave.css rename to webapp/src/components/woble.css index f720945..5844950 100644 --- a/webapp/src/components/Header/wave.css +++ b/webapp/src/components/woble.css @@ -5,13 +5,6 @@ cursor: pointer; justify-content: center; align-items: center; - /* text-transform: uppercase; */ - /* font-size: 1.5rem; */ - /* padding: 1rem 2rem; */ - /* background-color: black; */ - /* color: white; */ - /* border-radius: 100px; */ - /* gap: 1rem; */ } /* .wave > span {