Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('can create a contact from the event form', () => {
addContacts();
nav('/planning');
// Create the Event with base values
event = {
name: 'Test',
dates: {
start: {date: '12/12/2045', time: '00:00'},
end: {time: '00:59'},
},
};
subNavBar.createEvent();
editor.inputValues(event);
const contactInput = new ContactInput(editor.editor);
// Search for Foo Bar
contactInput.searchContacts('foo');
render() {
const {ContactHeader, ContactInfo, ContactFooter} = ContactComponents;
// Provides required services for Contact components
const services = {
gettextCatalog: ng.get('gettextCatalog'),
$filter: ng.get('$filter'),
datetime: ng.get('datetime'),
};
let contents = [
'div',
{
className: 'media-box contacts',
},
];
contents.push(
,
,
);
render() {
const {ContactFormContainer, ActionBar} = ContactFormComponents;
const {currentContact} = this.props;
// Provides required services for Contact components
const services = {
contacts: ng.get('contacts'),
gettext: ng.get('gettext'),
notify: ng.get('notify'),
privileges: ng.get('privileges'),
metadata: ng.get('metadata'),
};
return (
<a>
<i>
</i></a><i>
<h3>{gettext('Add Contact')}</h3>
</i><i>
</i>
render() {
const {ContactFormContainer, ActionBar} = ContactFormComponents;
const {currentContact} = this.props;
// Provides required services for Contact components
const services = {
contacts: ng.get('contacts'),
gettext: ng.get('gettext'),
notify: ng.get('notify'),
privileges: ng.get('privileges'),
metadata: ng.get('metadata'),
};
return (
<a>
<i>
</i></a><i>
<h3>{gettext('Add Contact')}</h3>
</i><i>
</i>
render() {
const {ContactHeader, ContactInfo, ContactFooter} = ContactComponents;
// Provides required services for Contact components
const services = {
gettextCatalog: ng.get('gettextCatalog'),
$filter: ng.get('$filter'),
datetime: ng.get('datetime'),
};
let contents = [
'div',
{
className: 'media-box contacts',
},
];
contents.push(
,
,
);
render() {
const {ContactHeader, ContactInfo, ContactFooter} = ContactComponents;
// Provides required services for Contact components
const services = {
gettextCatalog: ng.get('gettextCatalog'),
$filter: ng.get('$filter'),
datetime: ng.get('datetime'),
};
let contents = [
'div',
{
className: 'media-box contacts',
},
];
contents.push(
,
,
);
render() {
const {ContactFormContainer, ActionBar} = ContactFormComponents;
const {currentContact} = this.props;
// Provides required services for Contact components
const services = {
contacts: ng.get('contacts'),
gettext: ng.get('gettext'),
notify: ng.get('notify'),
privileges: ng.get('privileges'),
metadata: ng.get('metadata'),
};
return (
<a>
<i>
</i></a><i>
<h3>{gettext('Add Contact')}</h3>
</i><i>
</i>
render() {
const {ContactHeader, ContactInfo, ContactFooter} = ContactComponents;
// Provides required services for Contact components
const services = {
gettextCatalog: ng.get('gettextCatalog'),
$filter: ng.get('$filter'),
datetime: ng.get('datetime'),
};
let contents = [
'div',
{
className: 'media-box contacts',
},
];
contents.push(
,
,
);
render() {
const {ContactHeader, ContactInfo, ContactFooter} = ContactComponents;
// Provides required services for Contact components
const services = {
gettextCatalog: ng.get('gettextCatalog'),
$filter: ng.get('$filter'),
datetime: ng.get('datetime'),
};
let contents = [
'div',
{
className: 'media-box contacts',
},
];
contents.push(
,
,
);
return (
render() {
const {ContactFormContainer, ActionBar} = ContactFormComponents;
const {currentContact} = this.props;
// Provides required services for Contact components
const services = {
contacts: ng.get('contacts'),
gettext: ng.get('gettext'),
notify: ng.get('notify'),
privileges: ng.get('privileges'),
metadata: ng.get('metadata'),
};
return (
<a>
<i>
</i></a><i>
<h3>{gettext('Add Contact')}</h3>
</i><i>
</i>