From bab4b44133b3abed585e2b3357e9c745c9ff3cd9 Mon Sep 17 00:00:00 2001 From: Tim Date: Tue, 16 Jun 2026 08:39:19 +0200 Subject: [PATCH] feat(core): add error message to error page --- src/core/CoreProvider.tsx | 2 +- src/core/Error/Error.tsx | 15 ++++++++++++--- src/core/Error/styles.less | 31 ++++++++++++++++++++++++------- 3 files changed, 37 insertions(+), 11 deletions(-) diff --git a/src/core/CoreProvider.tsx b/src/core/CoreProvider.tsx index 5fea324cb..061ac4339 100644 --- a/src/core/CoreProvider.tsx +++ b/src/core/CoreProvider.tsx @@ -89,7 +89,7 @@ const Core = (props: Props) => { return ( - { error && !ready && } + { error && !ready && } { ready && !error && props.children } ); diff --git a/src/core/Error/Error.tsx b/src/core/Error/Error.tsx index fecfafc45..dd46968ba 100644 --- a/src/core/Error/Error.tsx +++ b/src/core/Error/Error.tsx @@ -6,7 +6,11 @@ import Image from 'stremio/components/Image'; import Button from 'stremio/components/Button'; import styles from './styles.less'; -const Error = () => { +type Props = { + message: string, +}; + +const Error = ({ message }: Props) => { const { t } = useTranslation(); const clearData = React.useCallback(() => { @@ -21,8 +25,13 @@ const Error = () => { src={require('/assets/images/empty.png')} alt={' '} /> -
- { t('GENERIC_ERROR_MESSAGE') } +
+
+ {t('GENERIC_ERROR_MESSAGE')} +
+
+ {message} +