akiran / akiran/react-slick

React Slick Style Break When Integrate WIth AntD Tabs

Open
#2,230 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
11.9k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

https://user-images.githubusercontent.com/55534481/229743010-e021464a-ba9e-4c72-a1c9-530c9f1b5afc.mov

React Slick + Tabs Ant Design

> ,
,
,
]}
tabBarGutter={0}
/>

>
{Object.keys(items).map((key, i) => {
const item = items[key as string]
const symbol = key.split('.')[0]

const priceType = () => {
if (item.changeValue > 0) return 'success'
else if (item.changeValue < 0) return 'danger'

return 'secondary'
}
return (


{isLoading && }
{!isLoading && (
<>




{symbol}

{mappedName[key]}


{thousandSeparator(Number(item.lastPrice) || 0)}


{`${thousandSeparator(
Number(item.changeValue) || 0
)} (${thousandSeparator(
roundDecimal(item.changePercentage || 0, 100)
)}%)`}



)}

)
})}

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.