mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
added updates everywhere
This commit is contained in:
parent
a451e30499
commit
b1e68a8a6d
27 changed files with 246 additions and 79 deletions
|
@ -11,9 +11,11 @@ import {
|
|||
selectLabStatsHeroes,
|
||||
selectLabStatsLoading,
|
||||
selectLabStatsTags,
|
||||
selectLabUpdatesNodes,
|
||||
} from '~/redux/lab/selectors';
|
||||
import { LabTags } from '~/components/lab/LabTags';
|
||||
import { LabHeroes } from '~/components/lab/LabHeroes';
|
||||
import { FlowRecentItem } from '~/components/flow/FlowRecentItem';
|
||||
|
||||
interface IProps {}
|
||||
|
||||
|
@ -21,6 +23,7 @@ const LabStats: FC<IProps> = () => {
|
|||
const tags = useShallowSelect(selectLabStatsTags);
|
||||
const heroes = useShallowSelect(selectLabStatsHeroes);
|
||||
const isLoading = useShallowSelect(selectLabStatsLoading);
|
||||
const updates = useShallowSelect(selectLabUpdatesNodes);
|
||||
|
||||
return (
|
||||
<Group>
|
||||
|
@ -42,6 +45,17 @@ const LabStats: FC<IProps> = () => {
|
|||
<div />
|
||||
<div />
|
||||
|
||||
{updates.length > 0 && (
|
||||
<>
|
||||
<div className={styles.title}>Новые</div>
|
||||
<Group className={styles.updates}>
|
||||
{updates.map(node => (
|
||||
<FlowRecentItem node={node} key={node.id} has_new />
|
||||
))}
|
||||
</Group>
|
||||
</>
|
||||
)}
|
||||
|
||||
{isLoading ? (
|
||||
<Placeholder height={14} width="100px" />
|
||||
) : (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue