Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public render(): JSX.Element {
return (
<div>
</div>
const _renderSpinner = (overlay: boolean) => {
const spinner = (
<div>
</div>
);
if (overlay) {
return (
{spinner}
);
} else {
return <div>{spinner}</div>;
}
};
public render(): React.ReactElement {
const { appStore, configStore } = this.props;
if (appStore.isInitializing)
return ();
return (
<div>
<div>
<div>{configStore.applicationTitle}</div>
</div>
{appStore.status === ApplicationStatus.CreateList ?
<div>
<div>1) Create List</div>
</div>
: null
}
</div>
isBlocking: false,
styles: { main: { maxWidth: 450 } },
}}
>
<div>{formatMessage('Please log in before continuing.')}</div>
actions.loginUser()} text={formatMessage('Login')} />
);
if (process.env.COMPOSER_REQUIRE_AUTH) {
if (!currentUser.sessionExpired && isLoading) {
return (
<div>
</div>
);
}
}
return (
{sessionExpiredDialog}
{props.children}
);
};
public render(): React.ReactElement {
const { loading, error, events } = this.state;
const { displayMode, title, updateProperty } = this.props;
return (
<div>
{loading &&
}
{!loading &&
error &&
<div>The following error occurred while loading events: <span>{error}</span></div>}
{!loading &&
!error &&
events.length === 0 &&
<div>No events found</div>}
{!loading &&
events.length > 0 &&
</div>
<div>
More info
</div>
}
>
An error occurred while registering your custom functions.
);
}
if (!items) {
return (
);
}
return (
<div>
{items.filter(item => item.status === 'error').length > 0
? 'Some of your functions are invalid and cannot be declared. Review and fix the issues.'
: 'The following functions have been registered successfully.'}
{items.map((item, index) => (
</div>