-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds Game Not Found functionality (#14)
* Adds an action, reducer, and basic UI for when a game is not found * The Fetch api is le suck. Also fixes a bug with games not loading correctly
- Loading branch information
Brandon Brown
authored
Jul 6, 2020
1 parent
3fa0495
commit 1c7bafd
Showing
7 changed files
with
72 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React from "react"; | ||
import styled from "@emotion/styled"; | ||
|
||
import { colors } from "../theme"; | ||
|
||
const NotFoundWrapper = styled("div")({ | ||
display: "flex", | ||
alignItems: "center", | ||
justifyContent: "center", | ||
height: "100%", | ||
width: "100%" | ||
}); | ||
|
||
class GameNotFound extends React.Component { | ||
render() { | ||
return ( | ||
<NotFoundWrapper> | ||
<h2 | ||
style={{ | ||
color: colors.food | ||
}} | ||
> | ||
Game no longer available, sorry! | ||
</h2> | ||
</NotFoundWrapper> | ||
); | ||
} | ||
} | ||
|
||
export default GameNotFound; |
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