forked from FreeFeed/freefeed-react-client
-
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.
- Loading branch information
Showing
38 changed files
with
1,171 additions
and
249 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
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,82 @@ | ||
import React from 'react' | ||
|
||
export default class GroupFeedTypePicker extends React.Component { | ||
|
||
handleChange = (property) => (event) => { | ||
this.props.updateGroupPrivacySettings({ [property]: event.target.value }) | ||
} | ||
|
||
render() { | ||
return ( | ||
<div> | ||
<div className="row form-group"> | ||
<div className="col-sm-3"> | ||
<label>Who can view posts:</label> | ||
</div> | ||
|
||
<div className="col-sm-9"> | ||
<label className="option-box"> | ||
<div className="input"> | ||
<input type="radio" | ||
name="isPrivate" | ||
value="0" | ||
checked={this.props.isPrivate === '0'} | ||
onChange={this.handleChange('isPrivate')}/> | ||
</div> | ||
<div className="option"> | ||
Everyone (public group) | ||
</div> | ||
</label> | ||
|
||
<label className="option-box"> | ||
<div className="input"> | ||
<input type="radio" | ||
name="isPrivate" | ||
value="1" | ||
checked={this.props.isPrivate === '1'} | ||
onChange={this.handleChange('isPrivate')}/> | ||
</div> | ||
<div className="option"> | ||
Group members (private group) | ||
</div> | ||
</label> | ||
</div> | ||
</div> | ||
|
||
<div className="row form-group"> | ||
<div className="col-sm-3"> | ||
<label>Who can write posts:</label> | ||
</div> | ||
|
||
<div className="col-sm-9"> | ||
<label className="option-box"> | ||
<div className="input"> | ||
<input type="radio" | ||
name="isRestricted" | ||
value="0" | ||
checked={this.props.isRestricted === '0'} | ||
onChange={this.handleChange('isRestricted')}/> | ||
</div> | ||
<div className="option"> | ||
Every group member | ||
</div> | ||
</label> | ||
|
||
<label className="option-box"> | ||
<div className="input"> | ||
<input type="radio" | ||
name="isRestricted" | ||
value="1" | ||
checked={this.props.isRestricted === '1'} | ||
onChange={this.handleChange('isRestricted')}/> | ||
</div> | ||
<div className="option"> | ||
Group administrators only | ||
</div> | ||
</label> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
} | ||
} |
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.