-
Sort by :
-
- latest
- oldest
-
+
+
+ Laporkan {quantityChange > 0 ? 'penambahan' : 'stok sekarang'} {quantityChange < 1 ? currentQuantity + quantityChange : quantityChange} {materials[selectedMaterialId]?.unit}
+
-
- {selectedMaterialId && !loading && (
-
- {sortedMutations.length > 0 ? (
- sortedMutations.map((mutation) => (
-
-
- {formatDate(mutation.createdAt)}
-
-
Details: {mutation.reason}
-
stok {mutation.newStock}
-
- ))
- ) : (
-
No mutations available.
- )}
+
+
> Riwayat stok
- )}
-
-
);
};
+// Styles
const styles = {
container: {
- position: 'fixed',
- height: '100vh',
- width: '100vw',
- top: 0,
- right: 0,
- backgroundColor: 'rgb(207, 207, 207)',
- overflowY: 'auto'
+ width: '100%',
+ backgroundColor: "white",
+ padding: "20px",
+ borderRadius: "8px",
+ boxShadow: "0 2px 10px rgba(0, 0, 0, 0.1)",
+ textAlign: "center", // Center text and children
},
- heading: {
- textAlign: "center",
- },
- toggleButton: {
- display: "block",
- width: "100%",
- padding: "10px",
- borderRadius: "5px",
- border: "none",
- backgroundColor: "#007bff",
- color: "white",
- fontSize: "16px",
- cursor: "pointer",
+ title: {
marginBottom: "20px",
- transition: "background-color 0.3s ease",
+ fontWeight: "bold",
},
- formContainer: {
- transition: "height 0.5s ease-in-out",
- overflow: "hidden",
- },
- form: {
- marginBottom: "20px",
- },
- formGroup: {
- marginBottom: "15px",
- },
- label: {
- display: "block",
- marginBottom: "5px",
- fontWeight: "600",
- },
- input: {
- width: "100%",
- padding: "10px",
- border: "1px solid #ddd",
- borderRadius: "8px",
- boxSizing: "border-box",
- },
- submitButton: {
- padding: "12px 20px",
- border: "none",
- borderRadius: "8px",
- backgroundColor: "#28a745",
- color: "#fff",
- cursor: "pointer",
- fontSize: "16px",
- transition: "background-color 0.3s, transform 0.3s",
- boxShadow: "0 4px 8px rgba(0, 0, 0, 0.1)",
- },
- deleteButton: {
- marginLeft: "10px",
- padding: "8px 15px",
- border: "none",
- borderRadius: "8px",
- backgroundColor: "#dc3545",
- color: "#fff",
- cursor: "pointer",
- fontSize: "14px",
- transition: "background-color 0.3s, transform 0.3s",
- boxShadow: "0 4px 8px rgba(0, 0, 0, 0.1)",
- },
- navigationContainer: {
- display: "flex",
- alignItems: "center",
- justifyContent: "center",
- marginTop: "20px",
+ qrCodeContainer: {
+ backgroundColor: '#999999',
+ borderRadius: '20px',
position: "relative",
+ width: "100%",
+ height: "200px",
+ backgroundSize: "contain",
+ overflow: "hidden",
+ margin: "0 auto", // Center the QR code container
},
- navigationButton: {
- padding: "10px",
- border: "none",
- borderRadius: "5px",
- backgroundColor: "#007bff",
- color: "white",
- fontSize: "18px",
- cursor: "pointer",
- margin: "0 5px",
- transition: "background-color 0.3s ease",
+ uploadMessage: {
+ fontWeight: 600,
+ textAlign: "left",
},
- materialCardContainer: {
- flex: "1",
- display: "flex",
- justifyContent: "center",
- transition: "opacity 0.5s ease-in-out",
+ uploadButton: {
+ paddingRight: '10px',
+ backgroundColor: 'green',
+ borderRadius: '30px',
+ color: 'white',
+ fontWeight: 700,
+ height: '36px',
+ lineHeight: '36px',
+ paddingLeft: '10px',
+ paddingHeight: '10px',
},
- materialCard: {
- padding: "15px",
- borderRadius: "8px",
- border: "1px solid #ddd",
- backgroundColor: "#fff",
- boxShadow: "0 4px 8px rgba(0, 0, 0, 0.1)",
- display: "flex",
- flexDirection: "column",
- alignItems: "center",
- textAlign: "center",
+ resultMessage: {
+ marginTop: "-13px",
+ textAlign: "left",
+ display: 'flex',
+ justifyContent: 'space-between'
},
- cardContent: {
- marginBottom: "10px",
- },
- cardTitle: {
- fontSize: "18px",
- fontWeight: "600",
- marginBottom: "5px",
- },
- image: {
- width: "100px",
- height: "100px",
- borderRadius: '50%',
- objectFit: "contain",
- marginBottom: "10px",
- },
- error: {
- color: "#dc3545",
- marginBottom: "15px",
- },
- mutationContainer: {
+ stokContainer: {
+ display: 'flex',
+ justifyContent: 'space-evenly',
+ alignItems: 'center',
+ marginTop: '20px',
marginTop: "20px",
- padding: "10px",
- borderRadius: "8px",
- border: "1px solid #ddd",
- backgroundColor: "#f8f9fa",
- boxShadow: "0 4px 8px rgba(0, 0, 0, 0.1)",
- },
- mutationCard: {
- padding: "10px",
- borderRadius: "8px",
- border: "1px solid #ddd",
- backgroundColor: "#fff",
- marginBottom: "10px",
- boxShadow: "0 2px 4px rgba(0, 0, 0, 0.1)",
- },
- mutationTitle: {
- fontSize: "16px",
- fontWeight: "600",
+ textAlign: "left",
},
buttonContainer: {
- display: "flex",
- alignItems: "center",
- marginTop: "10px",
+ marginTop: "20px",
+ textAlign: "left",
},
- quantityButton: {
- padding: "8px 12px",
- border: "none",
- borderRadius: "5px",
- backgroundColor: "#007bff",
- color: "white",
- fontSize: "16px",
- cursor: "pointer",
- margin: "0 5px",
- transition: "background-color 0.3s ease",
- },
- quantityDisplay: {
- padding: "8px 12px",
- border: "1px solid #ddd",
- borderRadius: "5px",
- backgroundColor: "#fff",
- color: "#000",
- fontSize: "16px",
- textAlign: "center",
- margin: "0 5px",
- },
- priceAtp: {
- padding: "8px 12px",
- border: "1px solid #ddd",
- borderRadius: "5px",
- textAlign: 'left',
- backgroundColor: "#fff",
- color: "#000",
- fontSize: "16px",
- margin: "0 5px",
- },
- updateMutation: {
- marginTop: "10px",
- padding: "12px 20px",
- border: "none",
- borderRadius: "8px",
- backgroundColor: "#007bff",
+ saveButton: {
+ padding: "10px 20px",
+ fontSize: "3.5vw",
+ backgroundColor: "#28a745",
color: "#fff",
+ border: "none",
+ borderRadius: "30px",
cursor: "pointer",
- fontSize: "16px",
- transition: "background-color 0.3s, transform 0.3s",
- boxShadow: "0 4px 8px rgba(0, 0, 0, 0.1)",
+ transition: "background-color 0.3s",
+ },
+ switchContainer: {
+ marginTop: "20px",
+ textAlign: "left",
+ },
+ historyContainer: {
+ marginTop: "20px",
+ textAlign: "left",
+ },
+ description: {
+ margin: "10px 0",
+ fontSize: "14px",
+ color: "#666",
},
};
-export default MaterialList;
+export default SetPaymentQr;