How to use the @skbkontur/react-ui/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 / flashcards / Flashcards / Flashcards.js View on Github external
startCourseRepeating() {
		const { flashcards, infoByUnits } = this.props;

		const unlockedCourseFlashcards = Flashcards.getUnlockedCourseFlashcards(flashcards, infoByUnits);
		const maxLastRateIndex = Flashcards.findMaxLastRateIndex(unlockedCourseFlashcards);

		Toast.push('Переход к повторению по курсу');

		this.setState({
			onUnit: false,
			onUnitRepeating: false,
			sessionFlashcards: unlockedCourseFlashcards,
			totalFlashcardsCount: unlockedCourseFlashcards.length,
			maxLastRateIndex,
			statistics: countFlashcardsStatistics(unlockedCourseFlashcards),
			currentFlashcard: getNextFlashcardRandomly(unlockedCourseFlashcards, maxLastRateIndex),
		});
	}
github kontur-edu / Ulearn / src / Frontend / src / components / common / Error / HeaderComponentErrorBoundary.js View on Github external
componentDidCatch(error, errorInfo) {
		this.setState({error});
		Raven.captureException(error, {extra: errorInfo});
		Toast.push('Произошла ошибка. Попробуйте перезагрузить страницу.');
	}

@skbkontur/react-ui

UI Components

MIT
Latest version published 1 month ago

Package Health Score

87 / 100
Full package analysis

Similar packages