ok
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
"name": "groovebrew-mockup",
|
"name": "groovebrew-mockup",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"homepage": "https://test.kedaimaster.com",
|
"homepage": "https://kedaimaster.com",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@emotion/react": "^11.13.3",
|
"@emotion/react": "^11.13.3",
|
||||||
"@emotion/styled": "^11.13.0",
|
"@emotion/styled": "^11.13.0",
|
||||||
|
|||||||
@@ -123,7 +123,7 @@
|
|||||||
-ms-overflow-style: none; /* IE and Edge */
|
-ms-overflow-style: none; /* IE and Edge */
|
||||||
scrollbar-width: none; /* Firefox */
|
scrollbar-width: none; /* Firefox */
|
||||||
position: relative;
|
position: relative;
|
||||||
max-height: 400px;
|
max-height: 462px;
|
||||||
/* Adjust the max-height as needed */
|
/* Adjust the max-height as needed */
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
/* Allow vertical scrolling */
|
/* Allow vertical scrolling */
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ export function MusicPlayer({ socket, shopId, user, shopOwnerId, isSpotifyNeedLo
|
|||||||
// setSubtitleColor("white");
|
// setSubtitleColor("white");
|
||||||
// setSubtitleBG("black");
|
// setSubtitleBG("black");
|
||||||
// }
|
// }
|
||||||
const proxiedUrl = `https://test.api.kedaimaster.com/image?url=${encodeURIComponent(modifyUrl(imageUrl))}`; // Use your proxy to fetch the image
|
const proxiedUrl = `https://api.kedaimaster.com/image?url=${encodeURIComponent(modifyUrl(imageUrl))}`; // Use your proxy to fetch the image
|
||||||
|
|
||||||
setBackgroundImage(proxiedUrl);
|
setBackgroundImage(proxiedUrl);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@@ -413,6 +413,11 @@ export function MusicPlayer({ socket, shopId, user, shopOwnerId, isSpotifyNeedLo
|
|||||||
}, 1000); // 1 second timeout (same as the CSS transition duration)
|
}, 1000); // 1 second timeout (same as the CSS transition duration)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const handleFocus = () => {
|
||||||
|
console.log(user)
|
||||||
|
if(user.length == 0) setModal("message", { captMessage: 'Silahkan lakukan transaksi' }, null, null);
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={`music-player`} style={{ marginBottom: `${viewing ? '-10px' : ''}` }}>
|
<div className={`music-player`} style={{ marginBottom: `${viewing ? '-10px' : ''}` }}>
|
||||||
<div
|
<div
|
||||||
@@ -506,6 +511,7 @@ export function MusicPlayer({ socket, shopId, user, shopOwnerId, isSpotifyNeedLo
|
|||||||
placeholder="Cari musik..."
|
placeholder="Cari musik..."
|
||||||
value={songName}
|
value={songName}
|
||||||
onChange={handleInputChange}
|
onChange={handleInputChange}
|
||||||
|
onFocus={handleFocus} // Detect when input is focused
|
||||||
className={clicked ? 'clicked' : ''}
|
className={clicked ? 'clicked' : ''}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// src/config.js
|
// src/config.js
|
||||||
|
|
||||||
const API_BASE_URL = 'https://test.api.kedaimaster.com';
|
const API_BASE_URL = 'https://api.kedaimaster.com';
|
||||||
|
|
||||||
export default API_BASE_URL;
|
export default API_BASE_URL;
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ const CreateCouponPage = () => {
|
|||||||
let encodedCouponCode = encodeURIComponent(encryptedCouponCode);
|
let encodedCouponCode = encodeURIComponent(encryptedCouponCode);
|
||||||
|
|
||||||
// Construct the URL with the encoded coupon code as a query parameter
|
// Construct the URL with the encoded coupon code as a query parameter
|
||||||
const urlWithCoupon = `https://test.coupon.kedaimaster.com/coupon?c=${encodedCouponCode}`;
|
const urlWithCoupon = `https://coupon.kedaimaster.com/coupon?c=${encodedCouponCode}`;
|
||||||
|
|
||||||
// Optionally, set the URL to use with the coupon
|
// Optionally, set the URL to use with the coupon
|
||||||
setCouponUrl(urlWithCoupon);
|
setCouponUrl(urlWithCoupon);
|
||||||
|
|||||||
@@ -444,7 +444,6 @@ const App = ({ forCafe = true, cafeId = -1,
|
|||||||
// Add a 2-second delay before proceeding
|
// Add a 2-second delay before proceeding
|
||||||
await delay(2000);
|
await delay(2000);
|
||||||
|
|
||||||
handleClose();
|
|
||||||
setModalStatus(null); // Reset status
|
setModalStatus(null); // Reset status
|
||||||
window.location.reload(); // Reload the page
|
window.location.reload(); // Reload the page
|
||||||
return;
|
return;
|
||||||
@@ -457,7 +456,6 @@ const App = ({ forCafe = true, cafeId = -1,
|
|||||||
|
|
||||||
// Add a 2-second delay before proceeding
|
// Add a 2-second delay before proceeding
|
||||||
await delay(2000);
|
await delay(2000);
|
||||||
handleClose();
|
|
||||||
setModalStatus(null); // Reset status
|
setModalStatus(null); // Reset status
|
||||||
window.location.reload(); // Reload the page
|
window.location.reload(); // Reload the page
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user