diff options
author | eug-vs <eug-vs@keemail.me> | 2020-08-16 00:24:09 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-08-16 00:24:09 +0300 |
commit | 6f82250c15d26b8bfaaff07cda9f6b05c53ef2c4 (patch) | |
tree | 26dd3bc254d4cbe2a53fa12fac97814041565073 /src/components/EmptyState/EmptyState.tsx | |
parent | 3fb3e865ccdb9af3e0b88424f7326aba9f92cdb9 (diff) | |
download | which-ui-6f82250c15d26b8bfaaff07cda9f6b05c53ef2c4.tar.gz |
feat: add error boundary
Diffstat (limited to 'src/components/EmptyState/EmptyState.tsx')
-rw-r--r-- | src/components/EmptyState/EmptyState.tsx | 7 |
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' } }; |