Commit 607f5392 authored by isstuev's avatar isstuev

count overload

parent 4bf1d410
...@@ -29,7 +29,7 @@ const TasCounter = ({ count, parentClassName }: Props) => { ...@@ -29,7 +29,7 @@ const TasCounter = ({ count, parentClassName }: Props) => {
transitionDuration="normal" transitionDuration="normal"
transitionTimingFunction="ease" transitionTimingFunction="ease"
> >
{ count } { count > 50 ? '50+' : count }
</Text> </Text>
); );
}; };
......
...@@ -24,7 +24,7 @@ test('with counters', async({ mount }) => { ...@@ -24,7 +24,7 @@ test('with counters', async({ mount }) => {
{ {
id: 'tab3', id: 'tab3',
title: 'Third tab', title: 'Third tab',
count: 1, count: 51,
component: null, component: null,
}, },
]; ];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment