-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Remove possibility to pause the game from the user-facing app
- Loading branch information
Showing
11 changed files
with
12 additions
and
294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,17 @@ | ||
import { Box, Button } from "@mui/material"; | ||
import { FormattedMessage } from "react-intl"; | ||
import * as React from "react"; | ||
|
||
import ButtonProgressIndicator from "./ButtonProgressIndicator"; | ||
import HeroMessage from "./HeroMessage"; | ||
import useUpdateClock from "../hooks/api/useUpdateClock"; | ||
|
||
const PausedHeroMessage = () => { | ||
const [isLoading, updateClock] = useUpdateClock(); | ||
|
||
return ( | ||
<HeroMessage | ||
title={ | ||
<FormattedMessage | ||
defaultMessage="Spiel pausiert" | ||
description="game paused message title" | ||
/> | ||
} | ||
description={ | ||
<FormattedMessage | ||
defaultMessage="Das Spiel ist pausiert. Du kannst es aber für alle fortsetzen." | ||
description="game paused message description" | ||
/> | ||
} | ||
after={ | ||
<Box marginTop={4} marginBottom={6}> | ||
<Button | ||
variant="outlined" | ||
color="primary" | ||
onClick={() => updateClock("running")} | ||
disabled={isLoading} | ||
> | ||
<FormattedMessage | ||
defaultMessage="Spiel für alle fortsetzen" | ||
description="game paused message continue button label" | ||
/> | ||
{isLoading && <ButtonProgressIndicator />} | ||
</Button> | ||
</Box> | ||
} | ||
/> | ||
); | ||
}; | ||
const PausedHeroMessage = () => ( | ||
<HeroMessage | ||
title={ | ||
<FormattedMessage | ||
defaultMessage="Spiel pausiert" | ||
description="game paused message title" | ||
/> | ||
} | ||
/> | ||
); | ||
|
||
export default PausedHeroMessage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.