|
@@ -85,6 +85,9 @@ const DepositData: FC<Props> = (props) => {
|
|
|
if (!item.is_buy) {
|
|
|
return;
|
|
|
}
|
|
|
+ if (item.activity_reward?.length > 0 || item.pay_reward?.length > 0) {
|
|
|
+ item.hasReward = true;
|
|
|
+ }
|
|
|
normalProduct.push(item);
|
|
|
});
|
|
|
|
|
@@ -323,12 +326,12 @@ const DepositData: FC<Props> = (props) => {
|
|
|
{btns?.map((item, index) => {
|
|
|
return (
|
|
|
<li
|
|
|
- className={
|
|
|
- amount == item.pay_value &&
|
|
|
- currentProduct?.id === item.id
|
|
|
- ? "active"
|
|
|
- : ""
|
|
|
- }
|
|
|
+ className={clsx({
|
|
|
+ ["active"]:
|
|
|
+ amount == item.pay_value &&
|
|
|
+ currentProduct?.id === item.id,
|
|
|
+ ["noReward"]: !item.hasReward,
|
|
|
+ })}
|
|
|
key={index}
|
|
|
onClick={() => {
|
|
|
setCurrentProduct(item);
|