-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
history: adding item selection (#1486)
* history: adding item selection * refactor handlers * single row selection * global handlers
- Loading branch information
1 parent
9b7a4a5
commit 8a043e3
Showing
19 changed files
with
833 additions
and
480 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { h } from 'preact'; | ||
import { useTypedTranslation } from '../types.js'; | ||
import cn from 'classnames'; | ||
import styles from './VirtualizedList.module.css'; | ||
|
||
/** | ||
* Empty state component displayed when no results are available | ||
*/ | ||
export function Empty() { | ||
const { t } = useTypedTranslation(); | ||
return ( | ||
<div class={cn(styles.emptyState, styles.emptyStateOffset)}> | ||
<img src="icons/clock.svg" width={128} height={96} alt="" class={styles.emptyStateImage} /> | ||
<h2 class={styles.emptyTitle}>{t('empty_title')}</h2> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.