How to use the @skbkontur/react-ui/components/Toast/Toast.push function in @skbkontur/react-ui

To help you get started, we’ve selected a few @skbkontur/react-ui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kontur-edu / Ulearn / src / Frontend / src / components / common / ErrorBoundary.js View on Github external
render() {
		if (this.state.error) {
			/* render fallback UI */
			return (
				
					<div> Raven.lastEventId() &amp;&amp; Raven.showReportDialog()}&gt;
						<p>We're sorry — something's gone wrong.</p>
						<p>Our team has been notified, but click here fill out a report.</p>
					</div>
					{Toast.push('Произошла ошибка. Попробуйте перезагрузить страницу.')}
				
			);
		}
		/* when there's not an error, render children untouched */
		return this.props.children;
	}
}
github kontur-edu / Ulearn / src / Frontend / src / components / groups / GroupSettingsPage / GroupMembers / InviteBlock / InviteBlock.js View on Github external
						<button>} onClick={() =&gt; Toast.push('Ссылка скопирована')}&gt;
							Скопировать ссылку</button>

@skbkontur/react-ui

UI Components

MIT
Latest version published 23 hours ago

Package Health Score

85 / 100
Full package analysis

Similar packages