Feature/cleanup manga card (#716)

* Extract manga badge components

* Extract list/grid manga card

* Disable default promise error handler in production
This commit is contained in:
schroda
2024-04-07 21:30:47 +02:00
committed by GitHub
parent ca8daab0da
commit 1b28ae27fa
8 changed files with 511 additions and 427 deletions

View File

@@ -6,6 +6,11 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
export const defaultPromiseErrorHandler = (name: string) => (error: any) =>
export const defaultPromiseErrorHandler = (name: string) => (error: any) => {
if (process.env.NODE_ENV === 'production') {
return;
}
// eslint-disable-next-line no-console
console.error(`${name} failed due to`, error);
};