aboutsummaryrefslogtreecommitdiff
path: root/src/components/EmptyState/EmptyState.tsx
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-08-16 00:24:09 +0300
committereug-vs <eug-vs@keemail.me>2020-08-16 00:24:09 +0300
commit6f82250c15d26b8bfaaff07cda9f6b05c53ef2c4 (patch)
tree26dd3bc254d4cbe2a53fa12fac97814041565073 /src/components/EmptyState/EmptyState.tsx
parent3fb3e865ccdb9af3e0b88424f7326aba9f92cdb9 (diff)
downloadwhich-ui-6f82250c15d26b8bfaaff07cda9f6b05c53ef2c4.tar.gz
feat: add error boundary
Diffstat (limited to 'src/components/EmptyState/EmptyState.tsx')
-rw-r--r--src/components/EmptyState/EmptyState.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/EmptyState/EmptyState.tsx b/src/components/EmptyState/EmptyState.tsx
index 1a8eec5..7167ba2 100644
--- a/src/components/EmptyState/EmptyState.tsx
+++ b/src/components/EmptyState/EmptyState.tsx
@@ -6,10 +6,11 @@ import Message from '../Message/Message';
import noContentIcon from '../../assets/noContent.svg';
import constructionIcon from '../../assets/construction.svg';
import serverIcon from '../../assets/server.svg';
+import errorIcon from '../../assets/error.svg';
interface PropTypes {
- variant?: 'default' | 'construction' | 'waiting';
+ variant?: 'default' | 'construction' | 'waiting' | 'error';
message?: string;
smart?: boolean;
}
@@ -32,6 +33,10 @@ const CONTEXT = {
waiting: {
icon: serverIcon,
tagline: 'Waiting for server'
+ },
+ error: {
+ icon: errorIcon,
+ tagline: 'Something went wrong'
}
};