Skip to content

Commit

Permalink
Clean up error component
Browse files Browse the repository at this point in the history
  • Loading branch information
RickyRoller committed Mar 10, 2025
1 parent 3c88479 commit a5f6bb4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/error/error-component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ import './error.scss';
const cn = bemClassName('error-page');

interface ErrorComponentProperties {
error: string;
onRetry: () => void;
}

export const ErrorComponent = ({ onRetry }: ErrorComponentProperties) => {
export const ErrorComponent = ({ error, onRetry }: ErrorComponentProperties) => {
return (
<>
<ThemeEngine theme={Themes.Dark} />
Expand All @@ -23,7 +24,7 @@ export const ErrorComponent = ({ onRetry }: ErrorComponentProperties) => {
<ZeroLogo />
</div>
<div {...cn('message-container')}>
<h3 {...cn('message')}>There was an error loading ZERO, please try again.</h3>
<h3 {...cn('message')}>{error}</h3>
<Button onPress={onRetry}>Try Again</Button>
</div>
</main>
Expand Down

0 comments on commit a5f6bb4

Please sign in to comment.