Compare commits
1 Commits
add-contac
...
font-loadi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
830313d9e3 |
@@ -2340,19 +2340,19 @@ html.static.boxed {
|
|||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Lato';
|
font-family: 'Lato';
|
||||||
src: url(/assets/./fonts/646474e48f4c1ea783f43ac5e41fd111.woff2) format("woff2"), url(/assets/./fonts/374df2a818582454b6e6832804e52f86.woff) format("woff");
|
src: url(/fonts/lato/lato-regular-webfont.woff2) format("woff2"), url(/fonts/lato/lato-regular-webfont.woff) format("woff");
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-style: normal; }
|
font-style: normal; }
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Lato';
|
font-family: 'Lato';
|
||||||
src: url(/assets/./fonts/5fa6d7ddc0a0d53311752343d7176d70.woff2) format("woff2"), url(/assets/./fonts/c53136193516ed2d4fac337d1dc6965a.woff) format("woff");
|
src: url(/assets/./fonts/lato/lato-bolditalic-webfont.woff2) format("woff2"), url(/assets/./fonts/lato/lato-bolditalic-webfont.woff) format("woff");
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-style: italic; }
|
font-style: italic; }
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Lato';
|
font-family: 'Lato';
|
||||||
src: url(/assets/./fonts/9bcf055a732c0b22d2279ba79e20c577.woff2) format("woff2"), url(/assets/./fonts/c8eef482ac448a91ecca9d008634c044.woff) format("woff");
|
src: url(/assets/./fonts/lato/lato-italic-webfont.woff2) format("woff2"), url(/assets/./fonts/lato/lato-italic-webfont.woff) format("woff");
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: italic; }
|
font-style: italic; }
|
||||||
|
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ const Address = (props) => {
|
|||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
||||||
const Main = ({ user, onAddressAdded, onAddressRemoved, onContactAdded, readOnly }) => {
|
const Main = ({ user, onAddressAdded, onAddressRemoved, readOnly }) => {
|
||||||
return (
|
return (
|
||||||
<div className="row">
|
<div className="row">
|
||||||
<div className="col-xl-12">
|
<div className="col-xl-12">
|
||||||
@@ -158,7 +158,7 @@ const Main = ({ user, onAddressAdded, onAddressRemoved, onContactAdded, readOnly
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="col-xl-6">
|
<div className="col-xl-6">
|
||||||
<ContactInfo user={user} readOnly={readOnly} onContactAdded={onContactAdded} />
|
<ContactInfo user={user} readOnly={readOnly} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -685,7 +685,6 @@ const ContactInfo = (props) => {
|
|||||||
title={"Member Contact"}
|
title={"Member Contact"}
|
||||||
buttonValue={"Add Contact"}
|
buttonValue={"Add Contact"}
|
||||||
showDescription={false}
|
showDescription={false}
|
||||||
onNewContact={props.onContactAdded}
|
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
@@ -824,7 +823,6 @@ class User extends React.Component {
|
|||||||
this.getUser = this.getUser.bind(this);
|
this.getUser = this.getUser.bind(this);
|
||||||
this.handleAddressAdded = this.handleAddressAdded.bind(this);
|
this.handleAddressAdded = this.handleAddressAdded.bind(this);
|
||||||
this.handleAddressRemoved = this.handleAddressRemoved.bind(this);
|
this.handleAddressRemoved = this.handleAddressRemoved.bind(this);
|
||||||
this.handleContactAdded = this.handleContactAdded.bind(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
@@ -842,22 +840,6 @@ class User extends React.Component {
|
|||||||
.catch(console.error);
|
.catch(console.error);
|
||||||
}
|
}
|
||||||
|
|
||||||
handleContactAdded(contact) {
|
|
||||||
const user_uuid = this.props.params.user_uuid;
|
|
||||||
const self = this;
|
|
||||||
|
|
||||||
var contactObj = {
|
|
||||||
"type": contact.type,
|
|
||||||
"contact": contact.contact,
|
|
||||||
}
|
|
||||||
|
|
||||||
Instance.getRawConn().post(`/v1/nemt/users/portal/${user_uuid}/contact`, contactObj)
|
|
||||||
.then(res => {
|
|
||||||
this.getUser(user_uuid);
|
|
||||||
})
|
|
||||||
.catch(console.error);
|
|
||||||
}
|
|
||||||
|
|
||||||
handleAddressAdded(address) {
|
handleAddressAdded(address) {
|
||||||
const user_uuid = this.props.params.user_uuid;
|
const user_uuid = this.props.params.user_uuid;
|
||||||
const self = this;
|
const self = this;
|
||||||
@@ -908,7 +890,6 @@ class User extends React.Component {
|
|||||||
user={user}
|
user={user}
|
||||||
onAddressAdded={this.handleAddressAdded}
|
onAddressAdded={this.handleAddressAdded}
|
||||||
onAddressRemoved={this.handleAddressRemoved}
|
onAddressRemoved={this.handleAddressRemoved}
|
||||||
onContactAdded={this.handleContactAdded}
|
|
||||||
readOnly={readOnly}
|
readOnly={readOnly}
|
||||||
/>
|
/>
|
||||||
</QueueAnim>
|
</QueueAnim>
|
||||||
|
|||||||
Reference in New Issue
Block a user