This commit is contained in:
zadit
2025-02-15 12:21:47 +07:00
parent a7f350464c
commit 422398c65e
9 changed files with 241 additions and 186 deletions

View File

@@ -609,64 +609,59 @@ const SetPaymentQr = ({ shop }) => {
{!isconfigcafeidentityname ? <div
onClick={() => { setIsConfigCafeIdentityName(true); cafeIdentifyNameRef.current && cafeIdentifyNameRef.current.focus() }} // Open the config modal
style={{
backgroundColor: '#303034',
right: 0,
color: 'white',
borderRadius: '0 0 6px 6px',
fontFamily: 'Roboto',
fontSize: '13px',
padding: 3,
cursor: 'pointer',
marginBottom: '10px'
}}
>
Ganti alamat kedai
</div> : (
<div style={{
display: 'flex', justifyContent: 'space-between', width: '100%',
marginBottom: '10px'
}}>
<div
onClick={() => setIsConfigCafeIdentityName(false)} // Close the config modal
style={{
backgroundColor: '#303034',
width: '47%',
color: 'white',
borderRadius: '0 0 0px 6px',
fontFamily: 'Roboto',
fontSize: '13px',
padding: 3,
cursor: 'pointer',
}}
>
Batalkan
{!isconfigcafeidentityname ?
<>
<div style={styles.uploadMessage}>
<p>Klik untuk ganti alamat</p>
</div>
<div
onClick={() => {
setCafeIdentifyNameDefault(cafeIdentifyNameUpdate)
// Handle save functionality here
setIsConfigCafeIdentityName(false); // Close after saving
}}
style={{
backgroundColor: '#303034',
width: '47%',
color: 'white',
borderRadius: '0 0 6px 0px',
fontFamily: 'Roboto',
fontSize: '13px',
padding: 3,
cursor: 'pointer',
}}
>
Simpan
<div style={styles.resultMessage}>
<p onClick={() => { setIsConfigCafeIdentityName(true); cafeIdentifyNameRef.current && cafeIdentifyNameRef.current.focus() }}>-----------------</p>
<div
onClick={() => {setIsConfigCafeIdentityName(true); cafeIdentifyNameRef.current && cafeIdentifyNameRef.current.focus()}} style={styles.changeButton}>Ganti</div>
</div>
</div>
)}
</> : (
<div style={{
display: 'flex', justifyContent: 'space-between', width: '100%',
marginBottom: '10px'
}}>
<div
onClick={() => setIsConfigCafeIdentityName(false)} // Close the config modal
style={{
backgroundColor: '#303034',
width: '47%',
color: 'white',
borderRadius: '0 0 0px 6px',
fontFamily: 'Roboto',
fontSize: '13px',
padding: 3,
cursor: 'pointer',
}}
>
Batalkan
</div>
<div
onClick={() => {
setCafeIdentifyNameDefault(cafeIdentifyNameUpdate)
// Handle save functionality here
setIsConfigCafeIdentityName(false); // Close after saving
}}
style={{
backgroundColor: '#303034',
width: '47%',
color: 'white',
borderRadius: '0 0 6px 0px',
fontFamily: 'Roboto',
fontSize: '13px',
padding: 3,
cursor: 'pointer',
}}
>
Simpan
</div>
</div>
)}
<div
id="qr-code-container"
style={{
@@ -979,12 +974,12 @@ const styles = {
},
changeButton: {
paddingRight: '10px',
backgroundColor: 'green',
backgroundColor: 'rgb(40, 167, 69)',
borderRadius: '30px',
color: 'white',
fontWeight: 700,
height: '36px',
lineHeight: '36px',
height: '31px',
lineHeight: '32px',
paddingLeft: '10px',
paddingHeight: '10px',
},
@@ -1022,14 +1017,14 @@ const styles = {
justifyContent: 'space-evenly'
},
saveButton: {
padding: "10px 15px",
fontSize: "16px",
backgroundColor: "#28a745",
color: "#fff",
border: "none",
borderRadius: "30px",
cursor: "pointer",
transition: "background-color 0.3s",
padding: '6px 15px',
fontSize: '13px',
backgroundColor: 'rgb(40, 167, 69)',
color: 'rgb(255, 255, 255)',
border: ' none',
borderRadius: '30px',
cursor: 'pointer',
transition: 'background-color 0.3s',
},
switchContainer: {
textAlign: "left",