Skip to content

Commit 57b5f4a

Browse files
committed
feat: add generic component for GenericFilterNullState
1 parent 228a38e commit 57b5f4a

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

src/Assets/Img/empty-noresult@2x.png

70.1 KB
Loading
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { GenericEmptyStateType } from '../Types'
2+
import noResult from '../../Assets/Img/empty-noresult@2x.png'
3+
import GenericEmptyState from './GenericEmptyState'
4+
5+
const GenericFilterEmptyState = (
6+
props: Omit<GenericEmptyStateType, 'image' | 'title' | 'subTitle'> &
7+
Partial<Pick<GenericEmptyStateType, 'title' | 'subTitle'>>,
8+
) => (
9+
<GenericEmptyState
10+
image={noResult}
11+
title="No results"
12+
subTitle="We couldn’t find any matching results"
13+
{...props}
14+
/>
15+
)
16+
17+
export default GenericFilterEmptyState

src/Common/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export { default as InfoColourBar } from './InfoColorBar/InfoColourbar'
2626
export * from './Common.service'
2727
export * from './Checkbox'
2828
export { default as GenericEmptyState } from './EmptyState/GenericEmptyState'
29+
export { default as GenericFilterEmptyState } from './EmptyState/GenericFilterEmptyState'
2930
export * from './SearchBar'
3031
export * from './SortableTableHeaderCell'
3132
export { default as Toggle } from './Toggle/Toggle'

0 commit comments

Comments
 (0)