Skip to content

Commit

Permalink
disable some features for now
Browse files Browse the repository at this point in the history
  • Loading branch information
naueramant committed May 20, 2024
1 parent d459fa1 commit 23df6ee
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 31 deletions.
23 changes: 10 additions & 13 deletions src/views/Game/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { FunctionComponent, useEffect, useState } from "react";
import {
Box,
Card,
Expand All @@ -8,19 +7,17 @@ import {
Typography,
useTheme,
} from "@mui/material";
import RemoteDialog from "./RemoteDialog";
import { IoLogoGameControllerB } from "react-icons/io";
import { FunctionComponent, useEffect, useState } from "react";
import { IoExitOutline } from "react-icons/io5";
import ExitGameDialog from "./ExitGameDialog";
import { useNavigate } from "react-router-dom";
import { useSounds } from "../../../hooks/sounds";
import useGame from "../../../stores/game";
import { secondsToHHMMSS, secondsToHHMMSSsss } from "../../../utilities/time";
import useSettings from "../../../stores/settings";
import { MdWbSunny } from "react-icons/md";
import { BsMoonStarsFill } from "react-icons/bs";
import { useGameMetrics } from "../../../stores/metrics";
import useSettings from "../../../stores/settings";
import { secondsToHHMMSS, secondsToHHMMSSsss } from "../../../utilities/time";
import DNFDialog from "./DNFDialog";
import { useSounds } from "../../../hooks/sounds";
import ExitGameDialog from "./ExitGameDialog";
import RemoteDialog from "./RemoteDialog";

const Header: FunctionComponent = () => {
const theme = useTheme();
Expand Down Expand Up @@ -103,7 +100,7 @@ const Header: FunctionComponent = () => {
},
}}
>
<Tooltip title="Game remote settings" placement="right">
{/* <Tooltip title="Game remote settings" placement="right">
<IconButton
sx={{
color: "primary.contrastText",
Expand Down Expand Up @@ -135,7 +132,7 @@ const Header: FunctionComponent = () => {
<MdWbSunny size={24} />
)}
</IconButton>
</Tooltip>
</Tooltip> */}
</Box>

<Stack direction="row" alignItems="center">
Expand Down Expand Up @@ -193,7 +190,7 @@ const Header: FunctionComponent = () => {
},
}}
>
<Tooltip title="Mark players as 'Did not finish'" placement="left">
{/* <Tooltip title="Mark players as 'Did not finish'" placement="left">
<IconButton
sx={{
fontSize: 12,
Expand All @@ -206,7 +203,7 @@ const Header: FunctionComponent = () => {
>
DNF
</IconButton>
</Tooltip>
</Tooltip> */}

<Tooltip title="Exit game" placement="left">
<IconButton
Expand Down
18 changes: 7 additions & 11 deletions src/views/Login/New/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,15 @@ import {
Typography,
useTheme,
} from "@mui/material";
import { FunctionComponent, useState } from "react";
import { NavLink } from "react-router-dom";
import PlayerList from "../components/PlayerList";
import { FunctionComponent } from "react";
import { Helmet } from "react-helmet";
import { IoInformationCircleOutline, IoPlay } from "react-icons/io5";
import GameModeSelector, { GameMode } from "../components/GameModeSelector";
import NumberOfPlayersSelector from "../components/NumberOfPlayersSelector";
import { useSounds } from "../../../hooks/sounds";
import { Helmet } from "react-helmet";
import useGame from "../../../stores/game";
import GameModeSelector, { GameMode } from "../components/GameModeSelector";
import NumberOfPlayersSelector from "../components/NumberOfPlayersSelector";
import PlayerList from "../components/PlayerList";
import ShuffleDialog from "./components/ShuffleDialog";
import { Player } from "../../../models/player";
import Conditional from "../../../components/Conditional";
import TimeAttackSettings from "../components/TimeAttackSettings";
import useNewGameForm from "./stores/new";

const MIN_PLAYERS = 2;
Expand Down Expand Up @@ -152,14 +148,14 @@ const NewGameView: FunctionComponent = () => {
Start game
</Button>

<Button
{/* <Button
component={NavLink}
variant="outlined"
size="large"
to="/login/continue"
>
Continue a game
</Button>
</Button> */}
</Stack>
</CardContent>
</Card>
Expand Down
2 changes: 1 addition & 1 deletion src/views/Login/New/stores/new.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ interface NewGameAction {
}

const initialState: NewGameState = {
ready: false,
ready: true,
numberOfPlayers: 4,
gameMode: "normal",
players: [],
Expand Down
11 changes: 5 additions & 6 deletions src/views/Login/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { Box, Container, Stack } from "@mui/material";
import { FunctionComponent, memo, useEffect, useMemo } from "react";
import { FunctionComponent, memo, useEffect } from "react";
import { Outlet } from "react-router-dom";
import SoundMuteFab from "./components/SoundMuteFab";
import BottomGamesCount from "./components/BottomGamesCount";
import { useSounds } from "../../hooks/sounds";
import ConfirmDialog from "../../components/ConfirmDialog";
import ThemeModeFab from "./components/ThemeModeFab";
import { useSounds } from "../../hooks/sounds";
import BottomGamesCount from "./components/BottomGamesCount";
import SoundMuteFab from "./components/SoundMuteFab";

const LoginView: FunctionComponent = () => {
const { play, stopAll } = useSounds();
Expand Down Expand Up @@ -38,7 +37,7 @@ const LoginView: FunctionComponent = () => {
}}
>
<SoundMuteFab absolutePosition={false} />
<ThemeModeFab absolutePosition={false} />
{/* <ThemeModeFab absolutePosition={false} /> */}
</Stack>

<Wallpaper />
Expand Down

0 comments on commit 23df6ee

Please sign in to comment.