Skip to content
Snippets Groups Projects

Notifications + small updates

Merged H9031 requested to merge notification-view into development
2 files
+ 28
28
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -58,32 +58,34 @@ export default class NotificationView extends React.Component {
@@ -58,32 +58,34 @@ export default class NotificationView extends React.Component {
Close
Close
</button>
</button>
<div>
<div>
{this.props.role === "admin" && this.props.gameState !== "ENDED" && (
{this.props.role === "admin" &&
<form onSubmit={this.handleSend}>
this.props.gameState !== "ENDED" &&
<select
this.props.gameState !== "CREATED" && (
id="notificationViewTypeSelect"
<form onSubmit={this.handleSend}>
value={this.state.notificationTypeInput}
<select
onChange={e =>
id="notificationViewTypeSelect"
this.setState({ notificationTypeInput: e.target.value })
value={this.state.notificationTypeInput}
}
onChange={e =>
>
this.setState({ notificationTypeInput: e.target.value })
<option value="note">Note</option>
}
<option value="alert">Alert</option>
>
</select>
<option value="note">Note</option>
<input
<option value="alert">Alert</option>
id="notificationViewMessageInput"
</select>
type="text"
<input
value={this.state.notificationInput}
id="notificationViewMessageInput"
onChange={e =>
type="text"
this.setState({ notificationInput: e.target.value })
value={this.state.notificationInput}
}
onChange={e =>
placeholder="Notification message..."
this.setState({ notificationInput: e.target.value })
/>
}
<button id="notificationSubmitButton" type="submit">
placeholder="Notification message..."
Send Notification
/>
</button>
<button id="notificationSubmitButton" type="submit">
</form>
Send Notification
)}
</button>
 
</form>
 
)}
</div>
</div>
{notifications}
{notifications}
</div>
</div>
Loading