github
199 of 268 branches covered (0.0%)
Branch coverage included in aggregate %.
178 of 237 new or added lines in 9 files covered. (75.11%)
7006 of 8222 relevant lines covered (85.21%)
3.42 hits per line
|
import { LiveMarket, Tab } from '@deriv-com/components'; |
2✔ |
|
import { ComponentProps } from 'react'; |
2✔ |
|
|
2✔ |
|
export type LiveMarketTabType = ComponentProps<typeof LiveMarket.Container> &
|
2✔ |
|
ComponentProps<typeof Tab.Base>; |
2✔ |
|
|
2✔ |
|
export const LiveMarketTab = ({ |
2✔ |
NEW
|
header, |
× |
NEW
|
description, |
× |
NEW
|
disclaimer, |
× |
NEW
|
link, |
× |
NEW
|
tabs, |
× |
NEW
|
children, |
× |
NEW
|
className, |
× |
NEW
|
}: LiveMarketTabType) => { |
× |
NEW
|
return (
|
× |
NEW
|
<LiveMarket.Container |
× |
NEW
|
header={header} |
× |
NEW
|
description={description} |
× |
NEW
|
disclaimer={disclaimer} |
× |
NEW
|
link={link} |
× |
NEW
|
className={className} |
× |
NEW
|
> |
× |
NEW
|
<Tab.Base tabs={tabs} className="flex flex-col gap-gap-2xl">
|
× |
NEW
|
{children} |
× |
NEW
|
</Tab.Base> |
× |
NEW
|
</LiveMarket.Container> |
× |
NEW
|
); |
× |
NEW
|
}; |
× |
|
|
2✔ |
|
export default LiveMarketTab; |
2✔ |