1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-03-18 00:19:49 +01:00

Merge branch 'main' into archive_table

This commit is contained in:
andreas-unleash 2022-06-10 09:24:20 +03:00 committed by GitHub
commit cb7ff9372e
4 changed files with 8 additions and 10 deletions

View File

@ -89,7 +89,7 @@
"react-table": "7.8.0", "react-table": "7.8.0",
"react-test-renderer": "17.0.2", "react-test-renderer": "17.0.2",
"react-timeago": "6.2.1", "react-timeago": "6.2.1",
"sass": "1.52.2", "sass": "1.52.3",
"semver": "7.3.7", "semver": "7.3.7",
"swr": "1.3.0", "swr": "1.3.0",
"tss-react": "3.7.0", "tss-react": "3.7.0",

View File

@ -12,10 +12,10 @@ const useToast = () => {
})); }));
const setToastApiError = useCallback( const setToastApiError = useCallback(
(errorText: string, overrides?: IToast) => { (text: string, overrides?: IToast) => {
setToast({ setToast({
title: 'Something went wrong', title: 'Something went wrong',
text: `We had trouble talking to our API. Here's why: ${errorText}`, text,
type: 'error', type: 'error',
show: true, show: true,
autoHideDuration: 12000, autoHideDuration: 12000,

View File

@ -51,9 +51,7 @@ export class NotFoundError extends Error {
statusCode: number; statusCode: number;
constructor(statusCode: number = NOT_FOUND) { constructor(statusCode: number = NOT_FOUND) {
super( super('The requested resource could not be found.');
'The requested resource could not be found but may be available in the future'
);
this.name = 'NotFoundError'; this.name = 'NotFoundError';
this.statusCode = statusCode; this.statusCode = statusCode;
} }

View File

@ -5451,10 +5451,10 @@ safe-buffer@~5.1.1:
resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"
integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==
sass@1.52.2: sass@1.52.3:
version "1.52.2" version "1.52.3"
resolved "https://registry.yarnpkg.com/sass/-/sass-1.52.2.tgz#cd1f03e0e7be5bb2cebcf1c34d735f087d790936" resolved "https://registry.yarnpkg.com/sass/-/sass-1.52.3.tgz#b7cc7ffea2341ccc9a0c4fd372bf1b3f9be1b6cb"
integrity sha512-mfHB2VSeFS7sZlPv9YohB9GB7yWIgQNTGniQwfQ04EoQN0wsQEv7SwpCwy/x48Af+Z3vDeFXz+iuXM3HK/phZQ== integrity sha512-LNNPJ9lafx+j1ArtA7GyEJm9eawXN8KlA1+5dF6IZyoONg1Tyo/g+muOsENWJH/2Q1FHbbV4UwliU0cXMa/VIA==
dependencies: dependencies:
chokidar ">=3.0.0 <4.0.0" chokidar ">=3.0.0 <4.0.0"
immutable "^4.0.0" immutable "^4.0.0"