Skip to content

Commit c741a04

Browse files
committed
refactor: move thumbs-up image to illustrations
1 parent 028aa8d commit c741a04

File tree

10 files changed

+47
-18
lines changed

10 files changed

+47
-18
lines changed
Lines changed: 15 additions & 0 deletions
Loading
Lines changed: 15 additions & 0 deletions
Loading

src/components/Illustration/Illustration.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ type IllustrationStore = Record<string, Record<string, () => Promise<{default: a
1212
const store: IllustrationStore = {
1313
light: {
1414
403: () => import('../../assets/illustrations/light/403.svg'),
15+
thumbsUp: () => import('../../assets/illustrations/light/thumbsUp.svg'),
1516
},
1617
dark: {
1718
403: () => import('../../assets/illustrations/dark/403.svg'),
19+
thumbsUp: () => import('../../assets/illustrations/light/thumbsUp.svg'),
1820
},
1921
};
2022

src/components/NodesViewer/NodesViewer.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ import {changeFilter} from '../../store/reducers/settings';
1616
import {hideTooltip, showTooltip} from '../../store/reducers/tooltip';
1717
import {getNodesColumns} from '../../utils/getNodesColumns';
1818

19+
import {Illustration} from '../Illustration';
20+
1921
import './NodesViewer.scss';
2022

2123
const b = cn('nodes-viewer');
@@ -138,7 +140,7 @@ class NodesViewer extends React.PureComponent {
138140
{showControls ? this.renderControls() : null}
139141
<div className={b('table-wrapper')}>
140142
{nodesToShow.length === 0 ? (
141-
<div className="no-problem" />
143+
<Illustration name="thumbsUp" width="200" />
142144
) : (
143145
<div className={b('table-content')}>
144146
<DataTable

0 commit comments

Comments
 (0)