mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
made better hoverables
This commit is contained in:
parent
ae7347fbb7
commit
0dd006d397
3 changed files with 11 additions and 7 deletions
|
@ -1,5 +1,6 @@
|
|||
import { FC, memo } from 'react';
|
||||
|
||||
import { Hoverable } from '~/components/common/Hoverable';
|
||||
import { Columns } from '~/components/containers/Columns';
|
||||
import { InfiniteScroll } from '~/components/containers/InfiniteScroll';
|
||||
import { LabNoResults } from '~/components/lab/LabNoResults';
|
||||
|
@ -22,12 +23,13 @@ const LabGrid: FC<IProps> = memo(() => {
|
|||
<div className={styles.wrap}>
|
||||
<Columns hasMore={hasMore && !isLoading} onScrollEnd={loadMore}>
|
||||
{nodes.map((node) => (
|
||||
<LabNode
|
||||
node={node.node}
|
||||
key={node.node.id}
|
||||
lastSeen={node.last_seen}
|
||||
commentCount={node.comment_count}
|
||||
/>
|
||||
<Hoverable key={node.node.id}>
|
||||
<LabNode
|
||||
node={node.node}
|
||||
lastSeen={node.last_seen}
|
||||
commentCount={node.comment_count}
|
||||
/>
|
||||
</Hoverable>
|
||||
))}
|
||||
</Columns>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue