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:
commit
cb7ff9372e
@ -89,7 +89,7 @@
|
||||
"react-table": "7.8.0",
|
||||
"react-test-renderer": "17.0.2",
|
||||
"react-timeago": "6.2.1",
|
||||
"sass": "1.52.2",
|
||||
"sass": "1.52.3",
|
||||
"semver": "7.3.7",
|
||||
"swr": "1.3.0",
|
||||
"tss-react": "3.7.0",
|
||||
|
@ -12,10 +12,10 @@ const useToast = () => {
|
||||
}));
|
||||
|
||||
const setToastApiError = useCallback(
|
||||
(errorText: string, overrides?: IToast) => {
|
||||
(text: string, overrides?: IToast) => {
|
||||
setToast({
|
||||
title: 'Something went wrong',
|
||||
text: `We had trouble talking to our API. Here's why: ${errorText}`,
|
||||
text,
|
||||
type: 'error',
|
||||
show: true,
|
||||
autoHideDuration: 12000,
|
||||
|
@ -51,9 +51,7 @@ export class NotFoundError extends Error {
|
||||
statusCode: number;
|
||||
|
||||
constructor(statusCode: number = NOT_FOUND) {
|
||||
super(
|
||||
'The requested resource could not be found but may be available in the future'
|
||||
);
|
||||
super('The requested resource could not be found.');
|
||||
this.name = 'NotFoundError';
|
||||
this.statusCode = statusCode;
|
||||
}
|
||||
|
@ -5451,10 +5451,10 @@ safe-buffer@~5.1.1:
|
||||
resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"
|
||||
integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==
|
||||
|
||||
sass@1.52.2:
|
||||
version "1.52.2"
|
||||
resolved "https://registry.yarnpkg.com/sass/-/sass-1.52.2.tgz#cd1f03e0e7be5bb2cebcf1c34d735f087d790936"
|
||||
integrity sha512-mfHB2VSeFS7sZlPv9YohB9GB7yWIgQNTGniQwfQ04EoQN0wsQEv7SwpCwy/x48Af+Z3vDeFXz+iuXM3HK/phZQ==
|
||||
sass@1.52.3:
|
||||
version "1.52.3"
|
||||
resolved "https://registry.yarnpkg.com/sass/-/sass-1.52.3.tgz#b7cc7ffea2341ccc9a0c4fd372bf1b3f9be1b6cb"
|
||||
integrity sha512-LNNPJ9lafx+j1ArtA7GyEJm9eawXN8KlA1+5dF6IZyoONg1Tyo/g+muOsENWJH/2Q1FHbbV4UwliU0cXMa/VIA==
|
||||
dependencies:
|
||||
chokidar ">=3.0.0 <4.0.0"
|
||||
immutable "^4.0.0"
|
||||
|
Loading…
Reference in New Issue
Block a user