-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
got adding and removing banned players/filtering to the views they ne…
…ed to be
- Loading branch information
Chris Sprance
committed
Dec 13, 2016
1 parent
123bf74
commit cb1ca5d
Showing
9 changed files
with
247 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/** | ||
* Name: Bans Dialog | ||
* Author: Chrissprance | ||
* Creation Date: 12/13/2016 | ||
* Description: contains the fields needed to add a steamid to the banlist | ||
*/ | ||
import React from 'react'; | ||
import Dialog from 'material-ui/Dialog'; | ||
import FlatButton from 'material-ui/FlatButton'; | ||
import TextField from 'material-ui/TextField'; | ||
|
||
const BanDialog = (props) => { | ||
const actions = [ | ||
<FlatButton | ||
label="Cancel" | ||
onTouchTap={props.actionCancel}/>, | ||
<FlatButton | ||
label="Submit" | ||
secondary={true} | ||
onTouchTap={props.actionSubmit}/> | ||
]; | ||
|
||
return ( | ||
<Dialog | ||
title="Add To Ban List" | ||
actions={actions} | ||
modal={false} | ||
onRequestClose={props.actionCancel} | ||
open={props.open} | ||
> | ||
<TextField | ||
floatingLabelText="Steam ID to Ban" | ||
value={props.steamID} | ||
onChange={props.updateSteamID} | ||
/> | ||
</Dialog> | ||
); | ||
}; | ||
|
||
|
||
BanDialog.propTypes = { | ||
open: React.PropTypes.bool.isRequired, | ||
updateSteamID: React.PropTypes.func.isRequired, | ||
steamID: React.PropTypes.string.isRequired, | ||
actionSubmit: React.PropTypes.func.isRequired, | ||
actionCancel: React.PropTypes.func.isRequired | ||
}; | ||
|
||
export default BanDialog; | ||
|
||
|
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
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,51 @@ | ||
/** | ||
* Name: Whitelist Dialog | ||
* Author: Chrissprance | ||
* Creation Date: 12/13/2016 | ||
* Description: contains the fields needed to add a steamid to the whitelist | ||
*/ | ||
import React from 'react'; | ||
import Dialog from 'material-ui/Dialog'; | ||
import FlatButton from 'material-ui/FlatButton'; | ||
import TextField from 'material-ui/TextField'; | ||
|
||
const WhitelistDialog = (props) => { | ||
const actions = [ | ||
<FlatButton | ||
label="Cancel" | ||
onTouchTap={props.actionCancel}/>, | ||
<FlatButton | ||
label="Submit" | ||
secondary={true} | ||
onTouchTap={props.actionSubmit}/> | ||
]; | ||
|
||
return ( | ||
<Dialog | ||
title="Add To WhiteList" | ||
actions={actions} | ||
modal={false} | ||
onRequestClose={props.actionCancel} | ||
open={props.open} | ||
> | ||
<TextField | ||
floatingLabelText="Steam ID to Whitelist" | ||
value={props.steamID} | ||
onChange={props.updateSteamID} | ||
/> | ||
</Dialog> | ||
); | ||
}; | ||
|
||
|
||
WhitelistDialog.propTypes = { | ||
open: React.PropTypes.bool.isRequired, | ||
updateSteamID: React.PropTypes.func.isRequired, | ||
steamID: React.PropTypes.string.isRequired, | ||
actionSubmit: React.PropTypes.func.isRequired, | ||
actionCancel: React.PropTypes.func.isRequired | ||
}; | ||
|
||
export default WhitelistDialog; | ||
|
||
|
Oops, something went wrong.