mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-13 19:06:26 +00:00
Fix claim rewards refresh bug
This commit is contained in:
parent
bf35961efb
commit
4bbb885ec6
@ -90,7 +90,7 @@ class BottomBar extends Component {
|
|||||||
this.setState({openProfile: false});
|
this.setState({openProfile: false});
|
||||||
};
|
};
|
||||||
|
|
||||||
handleSubmitInvoiceClicked=(rewardInvoice)=>{
|
handleSubmitInvoiceClicked=(e, rewardInvoice)=>{
|
||||||
this.setState({
|
this.setState({
|
||||||
badInvoice:false,
|
badInvoice:false,
|
||||||
showRewardsSpinner: true,
|
showRewardsSpinner: true,
|
||||||
@ -112,6 +112,7 @@ class BottomBar extends Component {
|
|||||||
withdrawn: data.successful_withdrawal ? true : false,
|
withdrawn: data.successful_withdrawal ? true : false,
|
||||||
showRewardsSpinner: false,
|
showRewardsSpinner: false,
|
||||||
}));
|
}));
|
||||||
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
getHost(){
|
getHost(){
|
||||||
|
@ -41,7 +41,7 @@ type Props = {
|
|||||||
activeOrderId: string | number;
|
activeOrderId: string | number;
|
||||||
lastOrderId: string | number;
|
lastOrderId: string | number;
|
||||||
referralCode: string;
|
referralCode: string;
|
||||||
handleSubmitInvoiceClicked: (invoice: string) => void;
|
handleSubmitInvoiceClicked: (e:any, invoice: string) => void;
|
||||||
host: string;
|
host: string;
|
||||||
showRewardsSpinner: boolean;
|
showRewardsSpinner: boolean;
|
||||||
withdrawn: boolean;
|
withdrawn: boolean;
|
||||||
@ -273,9 +273,9 @@ const ProfileDialog = ({
|
|||||||
</Grid>
|
</Grid>
|
||||||
</ListItemText>
|
</ListItemText>
|
||||||
) : (
|
) : (
|
||||||
<form style={{maxWidth: 270}}>
|
<form noValidate style={{maxWidth: 270}}>
|
||||||
<Grid container alignItems="stretch" style={{ display: "flex"}}>
|
<Grid container style={{ display: "flex", alignItems: "stretch"}}>
|
||||||
<Grid item style={{ display: "flex" }}>
|
<Grid item style={{ display: "flex", maxWidth:160}} >
|
||||||
<TextField
|
<TextField
|
||||||
error={badInvoice ? true : false}
|
error={badInvoice ? true : false}
|
||||||
helperText={badInvoice ? badInvoice : "" }
|
helperText={badInvoice ? badInvoice : "" }
|
||||||
@ -288,13 +288,14 @@ const ProfileDialog = ({
|
|||||||
/>
|
/>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<Grid item alignItems="stretch" style={{ display: "flex" }}>
|
<Grid item alignItems="stretch" style={{ display: "flex", maxWidth:80}}>
|
||||||
<Button
|
<Button
|
||||||
sx={{maxHeight:38}}
|
sx={{maxHeight:38}}
|
||||||
onClick={() => handleSubmitInvoiceClicked(rewardInvoice)}
|
onClick={(e) => handleSubmitInvoiceClicked(e, rewardInvoice)}
|
||||||
variant="contained"
|
variant="contained"
|
||||||
color="primary"
|
color="primary"
|
||||||
size="small"
|
size="small"
|
||||||
|
type="submit"
|
||||||
>
|
>
|
||||||
{t("Submit")}
|
{t("Submit")}
|
||||||
</Button>
|
</Button>
|
@ -3,7 +3,7 @@ export { default as InfoDialog } from "./Info";
|
|||||||
export { default as LearnDialog } from "./Learn";
|
export { default as LearnDialog } from "./Learn";
|
||||||
export { default as NoRobotDialog } from "./NoRobot";
|
export { default as NoRobotDialog } from "./NoRobot";
|
||||||
export { default as StoreTokenDialog } from "./StoreToken";
|
export { default as StoreTokenDialog } from "./StoreToken";
|
||||||
export { default as ExchangeSummaryDialog } from "./ExchangeSummaryDialog";
|
export { default as ExchangeSummaryDialog } from "./ExchangeSummary";
|
||||||
export { default as ProfileDialog } from "./ProfileDialog";
|
export { default as ProfileDialog } from "./Profile";
|
||||||
export { default as StatsDialog } from "./StatsDialog";
|
export { default as StatsDialog } from "./Stats";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user