添加用户的看多/看空逻辑

This commit is contained in:
2025-12-25 13:40:11 +08:00
parent 2e54a42fa9
commit a61f0600b3
2 changed files with 16 additions and 15 deletions

View File

@@ -52,9 +52,10 @@ const EventEngagement = ({
const sizeConfig = {
xs: { fontSize: '10px', iconSize: 12, spacing: 1.5, pillPx: 2, pillPy: 0.5 },
sm: { fontSize: '11px', iconSize: 14, spacing: 2, pillPx: 2.5, pillPy: 1 },
md: { fontSize: '12px', iconSize: 16, spacing: 2.5, pillPx: 3, pillPy: 1.5 },
md: { fontSize: '13px', iconSize: 18, spacing: 3, pillPx: 3, pillPy: 1.5 },
lg: { fontSize: '14px', iconSize: 20, spacing: 3.5, pillPx: 3.5, pillPy: 2 },
};
const config = sizeConfig[size] || sizeConfig.sm;
const config = sizeConfig[size] || sizeConfig.md;
const handleVote = useCallback(async (voteType) => {
if (!isLoggedIn) {