-
+
setNewMaterialName(event.target.value)}
placeholder="Masukkan nama barang"
+ style={{width: '100%', height: '31px'}}
/>
@@ -348,7 +332,8 @@ const SetPaymentQr = ({ cafeId }) => {
id="materialUnit"
value={newMaterialUnit}
onChange={(e) => setNewMaterialUnit(e.target.value)}
- style={styles.unit}
+ className={styles.unit}
+ style={{height: '37px'}}
>
@@ -362,131 +347,17 @@ const SetPaymentQr = ({ cafeId }) => {
-
-
);
};
-// Styles
-const styles = {
- container: {
- width: '100%',
- minHeight: '50vh',
- backgroundColor: "white",
- padding: "20px",
- borderRadius: "8px",
- boxShadow: "0 2px 10px rgba(0, 0, 0, 0.1)",
- textAlign: "center", // Center text and children
- },
- title: {
- marginBottom: "20px",
- fontWeight: "bold",
- },
- qrCodeContainer: {
- backgroundColor: '#999999',
- borderRadius: '20px',
- position: "relative",
- width: "100%",
- height: "200px",
- backgroundSize: "contain",
- overflow: "hidden",
- margin: "0 auto", // Center the QR code container
- },
- uploadMessage: {
- fontWeight: 600,
- textAlign: "left",
- },
- changeButtonEnabled: {
- paddingRight: '10px',
- backgroundColor: 'green',
- borderRadius: '30px',
- color: 'white',
- fontWeight: 700,
- height: '36px',
- lineHeight: '36px',
- paddingLeft: '10px',
- paddingHeight: '10px',
- },
- changeButtonDisabled: {
- paddingRight: '10px',
- backgroundColor: '#a1a1a1',
- borderRadius: '30px',
- color: 'white',
- fontWeight: 700,
- height: '36px',
- lineHeight: '36px',
- paddingLeft: '10px',
- paddingHeight: '10px',
- },
- resultMessage: {
- marginTop: "-13px",
- textAlign: "left",
- display: 'flex',
- justifyContent: 'space-between'
- },
- stokContainer: {
- display: 'flex',
- justifyContent: 'space-evenly',
- alignItems: 'center',
- marginTop: '18px',
- marginBottom: "6px",
- textAlign: "left",
- },
- buttonContainer: {
- marginTop: "11px",
- textAlign: "left",
- },
- stockButton: {
- padding: "10px 20px",
- fontSize: "3.5vw",
- backgroundColor: "#28a745",
- color: "#fff",
- border: "none",
- borderRadius: "30px",
- cursor: "pointer",
- transition: "background-color 0.3s",
- },
- saveButton: {
- width: '100%',
- padding: "10px 20px",
- fontSize: "3.5vw",
- backgroundColor: "#28a745",
- color: "#fff",
- border: "none",
- borderRadius: "30px",
- cursor: "pointer",
- transition: "background-color 0.3s",
- },
- switchContainer: {
- marginTop: "20px",
- textAlign: "left",
- },
- historyTab: {
- textAlign: "left",
- },
- historyContainer: {
- textAlign: "left",
- maxHeight: '200px',
- overflowY: 'auto'
- },
- description: {
- margin: "10px 0",
- fontSize: "14px",
- color: "#666",
- },
- unit: {
- marginTop: '11px',
- width: '100%',
- height: '31px',
- },
-};
-
export default SetPaymentQr;
diff --git a/src/pages/MaterialList.module.css b/src/pages/MaterialList.module.css
new file mode 100644
index 0000000..87f5196
--- /dev/null
+++ b/src/pages/MaterialList.module.css
@@ -0,0 +1,144 @@
+/* SetPaymentQr.module.css */
+
+.container {
+ width: 100%;
+ min-height: 47vh;
+ background-color: white;
+ padding: 20px;
+ border-radius: 8px;
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
+ text-align: center;
+ }
+
+ .title {
+ margin-bottom: 20px;
+ font-weight: bold;
+ }
+
+ .uploadMessage {
+ font-weight: 600;
+ text-align: left;
+ }
+
+ .changeButtonEnabled {
+ padding-right: 10px;
+ background-color: green;
+ border-radius: 30px;
+ color: white;
+ font-weight: 700;
+ height: 36px;
+ line-height: 36px;
+ padding-left: 10px;
+ padding-height: 10px;
+ }
+
+ .changeButtonDisabled {
+ padding-right: 10px;
+ background-color: #a1a1a1;
+ border-radius: 30px;
+ color: white;
+ font-weight: 700;
+ height: 36px;
+ line-height: 36px;
+ padding-left: 10px;
+ padding-height: 10px;
+ }
+
+ .resultMessage {
+ margin-top: -13px;
+ text-align: left;
+ display: flex;
+ justify-content: space-between;
+ }
+
+ .stokContainer {
+ display: flex;
+ justify-content: space-evenly;
+ align-items: center;
+ margin-top: -20px;
+ margin-bottom: -15px;
+ text-align: left;
+ }
+
+ .buttonContainer {
+ margin-top: 11px;
+ text-align: left;
+ }
+
+ .stockButton {
+ padding: 10px 20px;
+ font-size: 3.5vw;
+ background-color: #28a745;
+ color: #fff;
+ border: none;
+ border-radius: 30px;
+ cursor: pointer;
+ transition: background-color 0.3s;
+ }
+
+ .saveButton {
+ width: 100%;
+ padding: 10px 20px;
+ font-size: 3.5vw;
+ background-color: #28a745;
+ color: #fff;
+ border: none;
+ border-radius: 30px;
+ cursor: pointer;
+ transition: background-color 0.3s;
+ }
+
+ .switchContainer {
+ margin-top: 20px;
+ text-align: left;
+ }
+
+ .historyTab {
+ text-align: left;
+ }
+
+ .historyContainer {
+ text-align: left;
+ max-height: 15vh;
+ overflow-y: auto;
+ }
+
+ .description {
+ display: flex;
+ margin: 10px 0;
+ font-size: 14px;
+ color: #666;
+ }
+
+ .unit {
+ margin-top: 11px;
+ width: 100%;
+ height: 31px;
+ }
+
+ .sorter {
+ border: 1px solid #c3c3c3;
+ padding: 5px;
+ border-radius: 10px;
+ display: flex;
+ justify-content: space-between;
+ margin-top: -10px;
+ margin-bottom: 10px;
+ }
+
+ .mutationCard {
+ display: flex;
+ margin-bottom: 7px;
+ margin-top: 7px;
+ }
+
+ .mutationTitle {
+ margin-left: 5px;
+ }
+ .mutationTitle h4 {
+ margin: 0;
+ }
+
+ .mutationTitle p {
+ margin: 0;
+ }
\ No newline at end of file