Compare commits
13 Commits
bukopin
...
e8553ea12f
| Author | SHA1 | Date | |
|---|---|---|---|
| e8553ea12f | |||
| 4a7dfe6d52 | |||
| 5840ec682f | |||
| 9e39000483 | |||
| 35ce9e2484 | |||
| 6e83553e86 | |||
| 7a4ea8c528 | |||
| c154ccc0f6 | |||
|
|
b2a0cc9cdc | ||
|
|
0a482dd766 | ||
|
|
8a8d7c0e74 | ||
|
|
8c02184bd9 | ||
|
|
07634ef503 |
@@ -1,7 +1,9 @@
|
||||
FROM node:8-alpine
|
||||
RUN apk add --no-cache libc6-compat
|
||||
RUN apk add --no-cache git
|
||||
WORKDIR /app
|
||||
COPY package.json /app
|
||||
RUN yarn
|
||||
COPY package.json package-lock.json /app/
|
||||
RUN npm install
|
||||
COPY . /app
|
||||
CMD npm run watch
|
||||
EXPOSE 8080
|
||||
EXPOSE 7700
|
||||
@@ -17,7 +17,7 @@ spec:
|
||||
- name: bukopin-redemption-client-react
|
||||
image: registry-harbor.app.bangun-kreatif.com/bukopin/bukopin-redemption-client-react:<VERSION>
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
- containerPort: 7700
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ spec:
|
||||
service:
|
||||
name: bukopin-redemption-client-react
|
||||
port:
|
||||
number: 8080
|
||||
number: 7700
|
||||
tls:
|
||||
- hosts:
|
||||
- "bukopin-fe.k3s.bangun-kreatif.com"
|
||||
|
||||
@@ -7,7 +7,7 @@ metadata:
|
||||
run: bukopin-redemption-client-react
|
||||
spec:
|
||||
ports:
|
||||
- port: 8080
|
||||
- port: 7700
|
||||
protocol: TCP
|
||||
selector:
|
||||
app: bukopin-redemption-client-react
|
||||
|
||||
18920
package-lock.json
generated
18920
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -560,7 +560,7 @@ class App extends React.Component {
|
||||
<WithdrawDialog />
|
||||
|
||||
<div className={classes.root}>
|
||||
<AppBar style={{ zIndex: 1 }} position="fixed">
|
||||
<AppBar position="fixed">
|
||||
<Toolbar className={classes.toolbar}>
|
||||
<div className={classes.sectionMobile}>
|
||||
<IconButton className={classes.menuButton} color="action" aria-label="Open drawer" onClick={this.toggleDrawerNew(true)}>
|
||||
|
||||
@@ -11,11 +11,9 @@
|
||||
background-color: white;
|
||||
border: #ccc 1px solid;
|
||||
width: 100%;
|
||||
height: 200px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
align-items: center;
|
||||
margin-bottom: 10px;
|
||||
cursor: pointer;
|
||||
|
||||
@@ -49,24 +49,13 @@ export default class ModalTopupComponent extends React.Component {
|
||||
}
|
||||
]
|
||||
|
||||
let rightCode = {};
|
||||
var rightCode = {}
|
||||
|
||||
codeList.map((cl) => {
|
||||
if (cl.code === code){
|
||||
rightCode = cl
|
||||
}}
|
||||
)
|
||||
|
||||
this.setState({
|
||||
inputCode1: '',
|
||||
inputCode2: '',
|
||||
inputCode3: '',
|
||||
inputCode4: ''
|
||||
});
|
||||
|
||||
if (rightCode.code){
|
||||
this.props.appstate.wallet.data.wallet = this.props.appstate.wallet.data.wallet + cl.amount
|
||||
message.success("Voucher redeem success");
|
||||
this.props.appstate.wallet.data.wallet = this.props.appstate.wallet.data.wallet + rightCode.amount
|
||||
this.setState({
|
||||
confirmLoading: false
|
||||
});
|
||||
@@ -77,6 +66,7 @@ export default class ModalTopupComponent extends React.Component {
|
||||
});
|
||||
message.warning("Voucher redeem failed")
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
@@ -5,7 +5,7 @@ export class ItemStore extends BaseStore {
|
||||
@observable listImages = [];
|
||||
constructor(context) {
|
||||
super(context);
|
||||
this.url = "/categories/11936220-31f7-4f5e-8555-9110dbec4a5d/items";
|
||||
this.url = "items";
|
||||
}
|
||||
|
||||
@action
|
||||
|
||||
@@ -26,7 +26,7 @@ export default class Vouchers {
|
||||
getList(){
|
||||
console.log('res');
|
||||
this.isLoading = true;
|
||||
return this.http.get("categories/11936220-31f7-4f5e-8555-9110dbec4a5d/items")
|
||||
return this.http.get("items")
|
||||
.then(res => {
|
||||
this.list = res.data;
|
||||
this.isLoading = false;
|
||||
|
||||
Reference in New Issue
Block a user