Commit 23f24384 authored by TJHeeringa's avatar TJHeeringa

Update AssociationInfo(Form)

parent 24421d30
......@@ -18,12 +18,14 @@ export class AssociationInfo extends Component {
"Phone number": association.phone_number,
"Email": association.email
};
data["Legal"] = {
data["Constitutional"] = {
"Articles of Association": <a href={association.articles_of_association}>Articles of Association</a>,
"Bylaws": <a href={association.bylaws}>Bylaws</a>,
"Founding date": association.founding_date,
};
data["Legal"] = {
"Privacy Statement": <a href={association.privacy_statements}>Privacy Statement</a>,
"Terms of Service": <a href={association.terms_of_service}>Terms of Service</a>
};
return data
};
......
.thead {
font-size: 1.25rem;
margin-bottom: 0.5rem;
font-weight: 500;
line-height: 1.2;
margin-top: 0;
font-family: 'Univers Condensed';
color: #277EC0;
}
thead {
font-size: 1.25rem;
margin-bottom: 0.5rem;
font-weight: 500;
line-height: 1.2;
margin-top: 0;
font-family: 'Univers Condensed';
color: #277EC0;
}
#thead {
font-size: 1.25rem;
margin-bottom: 0.5rem;
font-weight: 500;
line-height: 1.2;
margin-top: 0;
font-family: 'Univers Condensed';
color: #277EC0;
}
\ No newline at end of file
......@@ -17,16 +17,11 @@ export class AssociationInfoScreen extends Component {
componentDidMount() {
Helper.api_call(
this.props.association.url,
this.props.association.url+'?fields!=membership,board,committees',
"GET",
undefined,
"json",
(association_info) => {
delete association_info.board;
delete association_info.committees;
delete association_info.membership;
delete association_info.logo;
delete association_info.photo;
this.setState({association: association_info});
}
)
......@@ -40,14 +35,6 @@ export class AssociationInfoScreen extends Component {
}
}
handleAssociationChange = (field, value) => {
this.setState(prevState => {
let association = prevState.association;
association[field] = value;
return {association: association}
});
};
render() {
return (
<div>
......@@ -76,7 +63,7 @@ export class AssociationInfoScreen extends Component {
?
<AssociationInfoForm
association={this.state.association}
handleAssociationChange={(field, value)=>{this.handleAssociationChange(field, value)}}
handleAssociationChange={(association)=>this.setState({association: association})}
/>
:
<AssociationInfo
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment