This commit is contained in:
zadit
2025-02-17 07:23:32 +07:00
parent df0dbafe18
commit 05c5545cbb
9 changed files with 169 additions and 52 deletions

View File

@@ -571,8 +571,8 @@ const App = ({ forCafe = true, cafeId = -1,
<RoundedRectangle
title={"Total promo"}
loading={loading}
value={'Rp'+analytics?.currentTotals.totalPromoSpend}
// width="calc(50% - 10px)"
value={'Rp'+analytics?.currentTotals?.totalPromoSpend}
width= {`calc(${!forCafe && selectedCafeId !== 0 ? '50%' : '100%'} - 10px)`}
onClick={() => window.location.href = window.location.origin + '/' + otherCafes.find(item => item.cafeId === selectedCafeId).cafeIdentifyName}
/>
)}
@@ -580,7 +580,7 @@ const App = ({ forCafe = true, cafeId = -1,
<RoundedRectangle
title={"Kunjungi bisnis"}
loading={loading}
// width="calc(100% - 10px)"
width= {`calc(${selectedCafeId !== 0 ? '50%' : '100%'} - 10px)`}
onClick={() => window.location.href = window.location.origin + '/' + otherCafes.find(item => item.cafeId === selectedCafeId).cafeIdentifyName}
/>
)}