Commit 607f5392 authored by isstuev's avatar isstuev

count overload

parent 4bf1d410
......@@ -29,7 +29,7 @@ const TasCounter = ({ count, parentClassName }: Props) => {
transitionDuration="normal"
transitionTimingFunction="ease"
>
{ count }
{ count > 50 ? '50+' : count }
</Text>
);
};
......
......@@ -24,7 +24,7 @@ test('with counters', async({ mount }) => {
{
id: 'tab3',
title: 'Third tab',
count: 1,
count: 51,
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