github
181 of 258 branches covered (0.0%)
Branch coverage included in aggregate %.
27 of 63 new or added lines in 1 file covered. (42.86%)
113 existing lines in 3 files now uncovered.6198 of 7233 relevant lines covered (85.69%)
3.41 hits per line
1 |
import { Text, Button } from '@deriv/quill-design'; |
3✔ |
2 |
import { MarketStatus } from '../types'; |
3✔ |
3 |
|
3✔ |
4 |
export const BuySellButtons = ({ |
3✔ |
UNCOV
5
|
status, |
× |
UNCOV
6
|
spread, |
× |
UNCOV
7
|
}: { |
× |
UNCOV
8
|
status: MarketStatus;
|
× |
UNCOV
9
|
spread: string; |
× |
UNCOV
10
|
}) => { |
× |
UNCOV
11
|
return (
|
× |
UNCOV
12
|
<div className="flex flex-col gap-gap-md">
|
× |
UNCOV
13
|
<div className="flex flex-row gap-gap-md">
|
× |
UNCOV
14
|
<Text size="sm" className="text-typography-default"> |
× |
UNCOV
15
|
Spread |
× |
UNCOV
16
|
</Text> |
× |
UNCOV
17
|
<Text size="sm" bold>
|
× |
UNCOV
18
|
{spread} |
× |
UNCOV
19
|
</Text> |
× |
UNCOV
20
|
</div> |
× |
UNCOV
21
|
<div className="flex flex-row gap-gap-md">
|
× |
UNCOV
22
|
<Button disabled={status === 'closed'} className="flex-1"> |
× |
UNCOV
23
|
Buy |
× |
UNCOV
24
|
</Button> |
× |
UNCOV
25
|
<Button |
× |
UNCOV
26
|
disabled={status === 'closed'} |
× |
UNCOV
27
|
className="flex-1"
|
× |
UNCOV
28
|
colorStyle="black"
|
× |
UNCOV
29
|
> |
× |
UNCOV
30
|
Sell |
× |
UNCOV
31
|
</Button> |
× |
UNCOV
32
|
</div> |
× |
UNCOV
33
|
</div> |
× |
UNCOV
34
|
); |
× |
UNCOV
35
|
}; |
× |