Commit 23f24384 authored by TJHeeringa's avatar TJHeeringa

Update AssociationInfo(Form)

parent 24421d30
...@@ -18,12 +18,14 @@ export class AssociationInfo extends Component { ...@@ -18,12 +18,14 @@ export class AssociationInfo extends Component {
"Phone number": association.phone_number, "Phone number": association.phone_number,
"Email": association.email "Email": association.email
}; };
data["Legal"] = { data["Constitutional"] = {
"Articles of Association": <a href={association.articles_of_association}>Articles of Association</a>, "Articles of Association": <a href={association.articles_of_association}>Articles of Association</a>,
"Bylaws": <a href={association.bylaws}>Bylaws</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>, "Privacy Statement": <a href={association.privacy_statements}>Privacy Statement</a>,
"Terms of Service": <a href={association.terms_of_service}>Terms of Service</a> "Terms of Service": <a href={association.terms_of_service}>Terms of Service</a>
}; };
return data 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 { ...@@ -17,16 +17,11 @@ export class AssociationInfoScreen extends Component {
componentDidMount() { componentDidMount() {
Helper.api_call( Helper.api_call(
this.props.association.url, this.props.association.url+'?fields!=membership,board,committees',
"GET", "GET",
undefined, undefined,
"json", "json",
(association_info) => { (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}); this.setState({association: association_info});
} }
) )
...@@ -40,14 +35,6 @@ export class AssociationInfoScreen extends Component { ...@@ -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() { render() {
return ( return (
<div> <div>
...@@ -76,7 +63,7 @@ export class AssociationInfoScreen extends Component { ...@@ -76,7 +63,7 @@ export class AssociationInfoScreen extends Component {
? ?
<AssociationInfoForm <AssociationInfoForm
association={this.state.association} association={this.state.association}
handleAssociationChange={(field, value)=>{this.handleAssociationChange(field, value)}} handleAssociationChange={(association)=>this.setState({association: association})}
/> />
: :
<AssociationInfo <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